{ "version": 3, "sources": ["../../../../../../node_modules/date-fns/add/index.js", "../../../../../../node_modules/date-fns/isWeekend/index.js", "../../../../../../node_modules/date-fns/isSunday/index.js", "../../../../../../node_modules/date-fns/isSaturday/index.js", "../../../../../../node_modules/date-fns/addBusinessDays/index.js", "../../../../../../node_modules/date-fns/setISOWeekYear/index.js", "../../../../../../node_modules/date-fns/addISOWeekYears/index.js", "../../../../../../node_modules/date-fns/addSeconds/index.js", "../../../../../../node_modules/date-fns/areIntervalsOverlapping/index.js", "../../../../../../node_modules/date-fns/clamp/index.js", "../../../../../../node_modules/date-fns/closestIndexTo/index.js", "../../../../../../node_modules/date-fns/closestTo/index.js", "../../../../../../node_modules/date-fns/compareAsc/index.js", "../../../../../../node_modules/date-fns/compareDesc/index.js", "../../../../../../node_modules/date-fns/daysToWeeks/index.js", "../../../../../../node_modules/date-fns/differenceInBusinessDays/index.js", "../../../../../../node_modules/date-fns/differenceInCalendarISOWeekYears/index.js", "../../../../../../node_modules/date-fns/differenceInCalendarISOWeeks/index.js", "../../../../../../node_modules/date-fns/differenceInCalendarQuarters/index.js", "../../../../../../node_modules/date-fns/differenceInCalendarWeeks/index.js", "../../../../../../node_modules/date-fns/differenceInDays/index.js", "../../../../../../node_modules/date-fns/differenceInMilliseconds/index.js", "../../../../../../node_modules/date-fns/_lib/roundingMethods/index.js", "../../../../../../node_modules/date-fns/differenceInHours/index.js", "../../../../../../node_modules/date-fns/subISOWeekYears/index.js", "../../../../../../node_modules/date-fns/differenceInISOWeekYears/index.js", "../../../../../../node_modules/date-fns/differenceInMinutes/index.js", "../../../../../../node_modules/date-fns/isLastDayOfMonth/index.js", "../../../../../../node_modules/date-fns/differenceInMonths/index.js", "../../../../../../node_modules/date-fns/differenceInQuarters/index.js", "../../../../../../node_modules/date-fns/differenceInSeconds/index.js", "../../../../../../node_modules/date-fns/differenceInWeeks/index.js", "../../../../../../node_modules/date-fns/differenceInYears/index.js", "../../../../../../node_modules/date-fns/eachDayOfInterval/index.js", "../../../../../../node_modules/date-fns/eachHourOfInterval/index.js", "../../../../../../node_modules/date-fns/startOfMinute/index.js", "../../../../../../node_modules/date-fns/eachMinuteOfInterval/index.js", "../../../../../../node_modules/date-fns/eachQuarterOfInterval/index.js", "../../../../../../node_modules/date-fns/eachWeekOfInterval/index.js", "../../../../../../node_modules/date-fns/eachWeekendOfInterval/index.js", "../../../../../../node_modules/date-fns/eachWeekendOfMonth/index.js", "../../../../../../node_modules/date-fns/eachWeekendOfYear/index.js", "../../../../../../node_modules/date-fns/endOfDecade/index.js", "../../../../../../node_modules/date-fns/endOfHour/index.js", "../../../../../../node_modules/date-fns/endOfISOWeek/index.js", "../../../../../../node_modules/date-fns/endOfISOWeekYear/index.js", "../../../../../../node_modules/date-fns/endOfMinute/index.js", "../../../../../../node_modules/date-fns/endOfQuarter/index.js", "../../../../../../node_modules/date-fns/endOfSecond/index.js", "../../../../../../node_modules/date-fns/endOfToday/index.js", "../../../../../../node_modules/date-fns/endOfTomorrow/index.js", "../../../../../../node_modules/date-fns/endOfYesterday/index.js", "../../../../../../node_modules/date-fns/_lib/cloneObject/index.js", "../../../../../../node_modules/date-fns/formatDistance/index.js", "../../../../../../node_modules/date-fns/formatDistanceStrict/index.js", "../../../../../../node_modules/date-fns/formatDistanceToNow/index.js", "../../../../../../node_modules/date-fns/formatDistanceToNowStrict/index.js", "../../../../../../node_modules/date-fns/formatDuration/index.js", "../../../../../../node_modules/date-fns/formatISO/index.js", "../../../../../../node_modules/date-fns/formatISO9075/index.js", "../../../../../../node_modules/date-fns/formatISODuration/index.js", "../../../../../../node_modules/date-fns/formatRFC3339/index.js", "../../../../../../node_modules/date-fns/formatRFC7231/index.js", "../../../../../../node_modules/date-fns/formatRelative/index.js", "../../../../../../node_modules/date-fns/fromUnixTime/index.js", "../../../../../../node_modules/date-fns/getDayOfYear/index.js", "../../../../../../node_modules/date-fns/isLeapYear/index.js", "../../../../../../node_modules/date-fns/getDaysInYear/index.js", "../../../../../../node_modules/date-fns/getDecade/index.js", "../../../../../../node_modules/date-fns/getDefaultOptions/index.js", "../../../../../../node_modules/date-fns/getISODay/index.js", "../../../../../../node_modules/date-fns/getISOWeeksInYear/index.js", "../../../../../../node_modules/date-fns/getMilliseconds/index.js", "../../../../../../node_modules/date-fns/getOverlappingDaysInIntervals/index.js", "../../../../../../node_modules/date-fns/getUnixTime/index.js", "../../../../../../node_modules/date-fns/getWeekYear/index.js", "../../../../../../node_modules/date-fns/startOfWeekYear/index.js", "../../../../../../node_modules/date-fns/getWeek/index.js", "../../../../../../node_modules/date-fns/getWeekOfMonth/index.js", "../../../../../../node_modules/date-fns/lastDayOfMonth/index.js", "../../../../../../node_modules/date-fns/getWeeksInMonth/index.js", "../../../../../../node_modules/date-fns/hoursToMilliseconds/index.js", "../../../../../../node_modules/date-fns/hoursToMinutes/index.js", "../../../../../../node_modules/date-fns/hoursToSeconds/index.js", "../../../../../../node_modules/date-fns/intervalToDuration/index.js", "../../../../../../node_modules/date-fns/intlFormat/index.js", "../../../../../../node_modules/date-fns/intlFormatDistance/index.js", "../../../../../../node_modules/date-fns/isExists/index.js", "../../../../../../node_modules/date-fns/isFirstDayOfMonth/index.js", "../../../../../../node_modules/date-fns/isFriday/index.js", "../../../../../../node_modules/date-fns/isFuture/index.js", "../../../../../../node_modules/date-fns/isMatch/index.js", "../../../../../../node_modules/date-fns/isMonday/index.js", "../../../../../../node_modules/date-fns/isPast/index.js", "../../../../../../node_modules/date-fns/startOfHour/index.js", "../../../../../../node_modules/date-fns/isSameHour/index.js", "../../../../../../node_modules/date-fns/isSameWeek/index.js", "../../../../../../node_modules/date-fns/isSameISOWeek/index.js", "../../../../../../node_modules/date-fns/isSameISOWeekYear/index.js", "../../../../../../node_modules/date-fns/isSameMinute/index.js", "../../../../../../node_modules/date-fns/startOfSecond/index.js", "../../../../../../node_modules/date-fns/isSameSecond/index.js", "../../../../../../node_modules/date-fns/isThisHour/index.js", "../../../../../../node_modules/date-fns/isThisISOWeek/index.js", "../../../../../../node_modules/date-fns/isThisMinute/index.js", "../../../../../../node_modules/date-fns/isThisMonth/index.js", "../../../../../../node_modules/date-fns/isThisQuarter/index.js", "../../../../../../node_modules/date-fns/isThisSecond/index.js", "../../../../../../node_modules/date-fns/isThisWeek/index.js", "../../../../../../node_modules/date-fns/isThisYear/index.js", "../../../../../../node_modules/date-fns/isThursday/index.js", "../../../../../../node_modules/date-fns/isToday/index.js", "../../../../../../node_modules/date-fns/isTomorrow/index.js", "../../../../../../node_modules/date-fns/isTuesday/index.js", "../../../../../../node_modules/date-fns/isWednesday/index.js", "../../../../../../node_modules/date-fns/isYesterday/index.js", "../../../../../../node_modules/date-fns/lastDayOfDecade/index.js", "../../../../../../node_modules/date-fns/lastDayOfWeek/index.js", "../../../../../../node_modules/date-fns/lastDayOfISOWeek/index.js", "../../../../../../node_modules/date-fns/lastDayOfISOWeekYear/index.js", "../../../../../../node_modules/date-fns/lastDayOfQuarter/index.js", "../../../../../../node_modules/date-fns/lastDayOfYear/index.js", "../../../../../../node_modules/date-fns/lightFormat/index.js", "../../../../../../node_modules/date-fns/milliseconds/index.js", "../../../../../../node_modules/date-fns/millisecondsToHours/index.js", "../../../../../../node_modules/date-fns/millisecondsToMinutes/index.js", "../../../../../../node_modules/date-fns/millisecondsToSeconds/index.js", "../../../../../../node_modules/date-fns/minutesToHours/index.js", "../../../../../../node_modules/date-fns/minutesToMilliseconds/index.js", "../../../../../../node_modules/date-fns/minutesToSeconds/index.js", "../../../../../../node_modules/date-fns/monthsToQuarters/index.js", "../../../../../../node_modules/date-fns/monthsToYears/index.js", "../../../../../../node_modules/date-fns/nextDay/index.js", "../../../../../../node_modules/date-fns/nextFriday/index.js", "../../../../../../node_modules/date-fns/nextMonday/index.js", "../../../../../../node_modules/date-fns/nextSaturday/index.js", "../../../../../../node_modules/date-fns/nextSunday/index.js", "../../../../../../node_modules/date-fns/nextThursday/index.js", "../../../../../../node_modules/date-fns/nextTuesday/index.js", "../../../../../../node_modules/date-fns/nextWednesday/index.js", "../../../../../../node_modules/date-fns/parseJSON/index.js", "../../../../../../node_modules/date-fns/previousDay/index.js", "../../../../../../node_modules/date-fns/previousFriday/index.js", "../../../../../../node_modules/date-fns/previousMonday/index.js", "../../../../../../node_modules/date-fns/previousSaturday/index.js", "../../../../../../node_modules/date-fns/previousSunday/index.js", "../../../../../../node_modules/date-fns/previousThursday/index.js", "../../../../../../node_modules/date-fns/previousTuesday/index.js", "../../../../../../node_modules/date-fns/previousWednesday/index.js", "../../../../../../node_modules/date-fns/quartersToMonths/index.js", "../../../../../../node_modules/date-fns/quartersToYears/index.js", "../../../../../../node_modules/date-fns/roundToNearestMinutes/index.js", "../../../../../../node_modules/date-fns/secondsToHours/index.js", "../../../../../../node_modules/date-fns/secondsToMilliseconds/index.js", "../../../../../../node_modules/date-fns/secondsToMinutes/index.js", "../../../../../../node_modules/date-fns/setDate/index.js", "../../../../../../node_modules/date-fns/setDay/index.js", "../../../../../../node_modules/date-fns/setDayOfYear/index.js", "../../../../../../node_modules/date-fns/setDefaultOptions/index.js", "../../../../../../node_modules/date-fns/setISODay/index.js", "../../../../../../node_modules/date-fns/setISOWeek/index.js", "../../../../../../node_modules/date-fns/setMilliseconds/index.js", "../../../../../../node_modules/date-fns/setWeek/index.js", "../../../../../../node_modules/date-fns/setWeekYear/index.js", "../../../../../../node_modules/date-fns/startOfDecade/index.js", "../../../../../../node_modules/date-fns/startOfToday/index.js", "../../../../../../node_modules/date-fns/startOfTomorrow/index.js", "../../../../../../node_modules/date-fns/startOfYesterday/index.js", "../../../../../../node_modules/date-fns/sub/index.js", "../../../../../../node_modules/date-fns/subBusinessDays/index.js", "../../../../../../node_modules/date-fns/subHours/index.js", "../../../../../../node_modules/date-fns/subMinutes/index.js", "../../../../../../node_modules/date-fns/subSeconds/index.js", "../../../../../../node_modules/date-fns/weeksToDays/index.js", "../../../../../../node_modules/date-fns/yearsToMonths/index.js", "../../../../../../node_modules/date-fns/yearsToQuarters/index.js", "../../../../../../node_modules/date-fns/index.js", "../../../../../../node_modules/date-fns-tz/_lib/tzIntlTimeZoneName/index.js", "../../../../../../node_modules/date-fns-tz/_lib/tzTokenizeDate/index.js", "../../../../../../node_modules/date-fns-tz/_lib/newDateUTC/index.js", "../../../../../../node_modules/date-fns-tz/_lib/tzParseTimezone/index.js", "../../../../../../node_modules/date-fns-tz/format/formatters/index.js", "../../../../../../node_modules/date-fns-tz/_lib/tzPattern/index.js", "../../../../../../node_modules/date-fns-tz/toDate/index.js", "../../../../../../node_modules/date-fns-tz/format/index.js", "../../../../../../node_modules/date-fns-tz/utcToZonedTime/index.js", "../../../../../../node_modules/date-fns-tz/formatInTimeZone/index.js", "../../../../../../node_modules/date-fns-tz/getTimezoneOffset/index.js", "../../../../../../node_modules/date-fns-tz/zonedTimeToUtc/index.js", "../../../../../../node_modules/date-fns-tz/index.js", "../../../../../../node_modules/jotai/esm/react.mjs", "../../../../../../node_modules/jotai/esm/vanilla.mjs", "../../../../../../owl-nest/common/config/useUserConfig.ts", "../../../../../../owl-nest/common/utils/src/number.ts", "../../../../../../owl-nest/common/utils/src/searchParams.ts", "../../../../../../owl-nest/common/utils/src/text.ts", "../../../../../../owl-nest/common/utils/index.ts", "../../../../../../owl-nest/common/utils/src/array.ts", "../../../../../../owl-nest/common/utils/src/money.ts", "../../../../../../owl-nest/common/utils/src/payment.ts", "../../../../../../owl-nest/common/api-client/src/version/2023-09-12/types.ts", "../../../../../../owl-nest/common/utils/src/platform.ts", "../../../../../../owl-nest/common/utils/src/scroll.ts", "../../../../../../owl-nest/common/utils/src/shipping.ts", "../../../../../../owl-nest/common/utils/src/styles.js", "../../../../../../owl-nest/common/utils/src/ua.ts", "../../../../../../owl-nest/common/utils/src/linkify.ts", "../../../../../../node_modules/linkify-html/dist/linkify-html.es.js", "../../../../../../node_modules/linkifyjs/dist/linkify.es.js", "../../../../../../owl-nest/common/date/src/index.ts", "../../../../../../owl-nest/common/date-fns/index.ts", "../../../../../../owl-nest/common/date/src/locales.ts", "../../../../../../node_modules/date-fns/esm/locale/fr/index.js", "../../../../../../node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js", "../../../../../../node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js", "../../../../../../node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js", "../../../../../../node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js", "../../../../../../node_modules/date-fns/esm/locale/fr/_lib/localize/index.js", "../../../../../../node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js", "../../../../../../node_modules/date-fns/esm/locale/fr/_lib/match/index.js", "../../../../../../node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js", "../../../../../../node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js", "../../../../../../node_modules/date-fns/esm/locale/es/index.js", "../../../../../../node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js", "../../../../../../node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js", "../../../../../../node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js", "../../../../../../node_modules/date-fns/esm/locale/es/_lib/localize/index.js", "../../../../../../node_modules/date-fns/esm/locale/es/_lib/match/index.js", "../../../../../../node_modules/date-fns/esm/locale/en-CA/index.js", "../../../../../../node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js", "../../../../../../node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js", "../../../../../../node_modules/date-fns/esm/locale/en-US/_lib/match/index.js", "../../../../../../node_modules/date-fns/esm/locale/en-CA/_lib/formatDistance/index.js", "../../../../../../node_modules/date-fns/esm/locale/en-CA/_lib/formatLong/index.js", "../../../../../../node_modules/date-fns/esm/locale/it/index.js", "../../../../../../node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js", "../../../../../../node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js", "../../../../../../node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js", "../../../../../../node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js", "../../../../../../node_modules/date-fns/esm/_lib/requiredArgs/index.js", "../../../../../../node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js", "../../../../../../node_modules/date-fns/esm/toDate/index.js", "../../../../../../node_modules/@babel/runtime/helpers/esm/typeof.js", "../../../../../../node_modules/date-fns/esm/_lib/toInteger/index.js", "../../../../../../node_modules/date-fns/esm/_lib/defaultOptions/index.js", "../../../../../../node_modules/date-fns/esm/locale/it/_lib/localize/index.js", "../../../../../../node_modules/date-fns/esm/locale/it/_lib/match/index.js", "../../../../../../node_modules/date-fns/esm/locale/de/index.js", "../../../../../../node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js", "../../../../../../node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js", "../../../../../../node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js", "../../../../../../node_modules/date-fns/esm/locale/de/_lib/localize/index.js", "../../../../../../node_modules/date-fns/esm/locale/de/_lib/match/index.js", "../../../../../../node_modules/date-fns/esm/locale/nl/index.js", "../../../../../../node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js", "../../../../../../node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js", "../../../../../../node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js", "../../../../../../node_modules/date-fns/esm/locale/nl/_lib/localize/index.js", "../../../../../../node_modules/date-fns/esm/locale/nl/_lib/match/index.js", "../../../../../../owl-nest/common/date/src/getCountDown.ts"], "sourcesContent": ["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = add;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _index = _interopRequireDefault(require(\"../addDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../addMonths/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name add\n * @category Common Helpers\n * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.\n *\n * @description\n * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n *\n * | Key | Description |\n * |----------------|------------------------------------|\n * | years | Amount of years to be added |\n * | months | Amount of months to be added |\n * | weeks | Amount of weeks to be added |\n * | days | Amount of days to be added |\n * | hours | Amount of hours to be added |\n * | minutes | Amount of minutes to be added |\n * | seconds | Amount of seconds to be added |\n *\n * All values default to 0\n *\n * @returns {Date} the new date with the seconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add the following duration to 1 September 2014, 10:19:50\n * const result = add(new Date(2014, 8, 1, 10, 19, 50), {\n * years: 2,\n * months: 9,\n * weeks: 1,\n * days: 7,\n * hours: 5,\n * minutes: 9,\n * seconds: 30,\n * })\n * //=> Thu Jun 15 2017 15:29:20\n */\nfunction add(dirtyDate, duration) {\n (0, _index4.default)(2, arguments);\n if (!duration || (0, _typeof2.default)(duration) !== 'object') return new Date(NaN);\n var years = duration.years ? (0, _index5.default)(duration.years) : 0;\n var months = duration.months ? (0, _index5.default)(duration.months) : 0;\n var weeks = duration.weeks ? (0, _index5.default)(duration.weeks) : 0;\n var days = duration.days ? (0, _index5.default)(duration.days) : 0;\n var hours = duration.hours ? (0, _index5.default)(duration.hours) : 0;\n var minutes = duration.minutes ? (0, _index5.default)(duration.minutes) : 0;\n var seconds = duration.seconds ? (0, _index5.default)(duration.seconds) : 0;\n\n // Add years and months\n var date = (0, _index3.default)(dirtyDate);\n var dateWithMonths = months || years ? (0, _index2.default)(date, months + years * 12) : date;\n\n // Add weeks and days\n var dateWithDays = days || weeks ? (0, _index.default)(dateWithMonths, days + weeks * 7) : dateWithMonths;\n\n // Add days, hours, minutes and seconds\n var minutesToAdd = minutes + hours * 60;\n var secondsToAdd = seconds + minutesToAdd * 60;\n var msToAdd = secondsToAdd * 1000;\n var finalDate = new Date(dateWithDays.getTime() + msToAdd);\n return finalDate;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isWeekend;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isWeekend\n * @category Weekday Helpers\n * @summary Does the given date fall on a weekend?\n *\n * @description\n * Does the given date fall on a weekend?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date falls on a weekend\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Does 5 October 2014 fall on a weekend?\n * const result = isWeekend(new Date(2014, 9, 5))\n * //=> true\n */\nfunction isWeekend(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var day = date.getDay();\n return day === 0 || day === 6;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSunday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSunday\n * @category Weekday Helpers\n * @summary Is the given date Sunday?\n *\n * @description\n * Is the given date Sunday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Sunday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 21 September 2014 Sunday?\n * const result = isSunday(new Date(2014, 8, 21))\n * //=> true\n */\nfunction isSunday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDay() === 0;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSaturday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSaturday\n * @category Weekday Helpers\n * @summary Is the given date Saturday?\n *\n * @description\n * Is the given date Saturday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Saturday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 27 September 2014 Saturday?\n * const result = isSaturday(new Date(2014, 8, 27))\n * //=> true\n */\nfunction isSaturday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDay() === 6;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = addBusinessDays;\nvar _index = _interopRequireDefault(require(\"../isWeekend/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../isSunday/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../isSaturday/index.js\"));\n/**\n * @name addBusinessDays\n * @category Day Helpers\n * @summary Add the specified number of business days (mon - fri) to the given date.\n *\n * @description\n * Add the specified number of business days (mon - fri) to the given date, ignoring weekends.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the business days added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 10 business days to 1 September 2014:\n * const result = addBusinessDays(new Date(2014, 8, 1), 10)\n * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days)\n */\nfunction addBusinessDays(dirtyDate, dirtyAmount) {\n (0, _index4.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var startedOnWeekend = (0, _index.default)(date);\n var amount = (0, _index3.default)(dirtyAmount);\n if (isNaN(amount)) return new Date(NaN);\n var hours = date.getHours();\n var sign = amount < 0 ? -1 : 1;\n var fullWeeks = (0, _index3.default)(amount / 5);\n date.setDate(date.getDate() + fullWeeks * 7);\n\n // Get remaining days not part of a full week\n var restDays = Math.abs(amount % 5);\n\n // Loops over remaining days\n while (restDays > 0) {\n date.setDate(date.getDate() + sign);\n if (!(0, _index.default)(date)) restDays -= 1;\n }\n\n // If the date is a weekend day and we reduce a dividable of\n // 5 from it, we land on a weekend date.\n // To counter this, we add days accordingly to land on the next business day\n if (startedOnWeekend && (0, _index.default)(date) && amount !== 0) {\n // If we're reducing days, we want to add days until we land on a weekday\n // If we're adding days we want to reduce days until we land on a weekday\n if ((0, _index6.default)(date)) date.setDate(date.getDate() + (sign < 0 ? 2 : -1));\n if ((0, _index5.default)(date)) date.setDate(date.getDate() + (sign < 0 ? 1 : -2));\n }\n\n // Restore hours to avoid DST lag\n date.setHours(hours);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setISOWeekYear;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../startOfISOWeekYear/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Set the ISO week-numbering year to the given date.\n *\n * @description\n * Set the ISO week-numbering year to the given date,\n * saving the week number and the weekday number.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} isoWeekYear - the ISO week-numbering year of the new date\n * @returns {Date} the new date with the ISO week-numbering year set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set ISO week-numbering year 2007 to 29 December 2008:\n * const result = setISOWeekYear(new Date(2008, 11, 29), 2007)\n * //=> Mon Jan 01 2007 00:00:00\n */\nfunction setISOWeekYear(dirtyDate, dirtyISOWeekYear) {\n (0, _index5.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var isoWeekYear = (0, _index.default)(dirtyISOWeekYear);\n var diff = (0, _index4.default)(date, (0, _index3.default)(date));\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setFullYear(isoWeekYear, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n date = (0, _index3.default)(fourthOfJanuary);\n date.setDate(date.getDate() + diff);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = addISOWeekYears;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../getISOWeekYear/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../setISOWeekYear/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name addISOWeekYears\n * @category ISO Week-Numbering Year Helpers\n * @summary Add the specified number of ISO week-numbering years to the given date.\n *\n * @description\n * Add the specified number of ISO week-numbering years to the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the ISO week-numbering years added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 ISO week-numbering years to 2 July 2010:\n * const result = addISOWeekYears(new Date(2010, 6, 2), 5)\n * //=> Fri Jun 26 2015 00:00:00\n */\nfunction addISOWeekYears(dirtyDate, dirtyAmount) {\n (0, _index4.default)(2, arguments);\n var amount = (0, _index.default)(dirtyAmount);\n return (0, _index3.default)(dirtyDate, (0, _index2.default)(dirtyDate) + amount);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = addSeconds;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../addMilliseconds/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name addSeconds\n * @category Second Helpers\n * @summary Add the specified number of seconds to the given date.\n *\n * @description\n * Add the specified number of seconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the seconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 30 seconds to 10 July 2014 12:45:00:\n * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)\n * //=> Thu Jul 10 2014 12:45:30\n */\nfunction addSeconds(dirtyDate, dirtyAmount) {\n (0, _index3.default)(2, arguments);\n var amount = (0, _index.default)(dirtyAmount);\n return (0, _index2.default)(dirtyDate, amount * 1000);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = areIntervalsOverlapping;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name areIntervalsOverlapping\n * @category Interval Helpers\n * @summary Is the given time interval overlapping with another time interval?\n *\n * @description\n * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping.\n *\n * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Object} [options] - the object with options\n * @param {Boolean} [options.inclusive=false] - whether the comparison is inclusive or not\n * @returns {Boolean} whether the time intervals are overlapping\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // For overlapping time intervals:\n * areIntervalsOverlapping(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }\n * )\n * //=> true\n *\n * @example\n * // For non-overlapping time intervals:\n * areIntervalsOverlapping(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) }\n * )\n * //=> false\n *\n * @example\n * // For adjacent time intervals:\n * areIntervalsOverlapping(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) }\n * )\n * //=> false\n *\n * @example\n * // Using the inclusive option:\n * areIntervalsOverlapping(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }\n * )\n * //=> false\n * areIntervalsOverlapping(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) },\n * { inclusive: true }\n * )\n * //=> true\n */\nfunction areIntervalsOverlapping(intervalLeft, intervalRight, options) {\n (0, _index2.default)(2, arguments);\n var leftStartTime = (0, _index.default)(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.start).getTime();\n var leftEndTime = (0, _index.default)(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.end).getTime();\n var rightStartTime = (0, _index.default)(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.start).getTime();\n var rightEndTime = (0, _index.default)(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.end).getTime();\n\n // Throw an exception if start date is after end date or if any date is `Invalid Date`\n if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) {\n throw new RangeError('Invalid interval');\n }\n if (options !== null && options !== void 0 && options.inclusive) {\n return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime;\n }\n return leftStartTime < rightEndTime && rightStartTime < leftEndTime;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = clamp;\nvar _index = _interopRequireDefault(require(\"../max/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../min/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name clamp\n * @category Interval Helpers\n * @summary Return a date bounded by the start and the end of the given interval\n *\n * @description\n * Clamps a date to the lower bound with the start of the interval and the upper\n * bound with the end of the interval.\n *\n * - When the date is less than the start of the interval, the start is returned.\n * - When the date is greater than the end of the interval, the end is returned.\n * - Otherwise the date is returned.\n *\n * @example\n * // What is Mar, 21, 2021 bounded to an interval starting at Mar, 22, 2021 and ending at Apr, 01, 2021\n * const result = clamp(new Date(2021, 2, 21), {\n * start: new Date(2021, 2, 22),\n * end: new Date(2021, 3, 1),\n * })\n * //=> Mon Mar 22 2021 00:00:00\n *\n * @param {Date | Number} date - the date to be bounded\n * @param {Interval} interval - the interval to bound to\n * @returns {Date} the date bounded by the start and the end of the interval\n * @throws {TypeError} 2 arguments required\n */\nfunction clamp(date, _ref) {\n var start = _ref.start,\n end = _ref.end;\n (0, _index3.default)(2, arguments);\n return (0, _index2.default)([(0, _index.default)([date, start]), end]);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = closestIndexTo;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name closestIndexTo\n * @category Common Helpers\n * @summary Return an index of the closest date from the array comparing to the given date.\n *\n * @description\n * Return an index of the closest date from the array comparing to the given date.\n *\n * @param {Date | Number} dateToCompare - the date to compare with\n * @param {Array | Array} datesArray - the array to search\n * @returns {Number | undefined} an index of the date closest to the given date or undefined if no valid value is given\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Which date is closer to 6 September 2015?\n * const dateToCompare = new Date(2015, 8, 6)\n * const datesArray = [\n * new Date(2015, 0, 1),\n * new Date(2016, 0, 1),\n * new Date(2017, 0, 1)\n * ]\n * const result = closestIndexTo(dateToCompare, datesArray)\n * //=> 1\n */\nfunction closestIndexTo(dirtyDateToCompare, dirtyDatesArray) {\n (0, _index2.default)(2, arguments);\n var dateToCompare = (0, _index.default)(dirtyDateToCompare);\n if (isNaN(Number(dateToCompare))) return NaN;\n var timeToCompare = dateToCompare.getTime();\n var datesArray;\n // `dirtyDatesArray` is undefined or null\n if (dirtyDatesArray == null) {\n datesArray = [];\n\n // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method\n } else if (typeof dirtyDatesArray.forEach === 'function') {\n datesArray = dirtyDatesArray;\n\n // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array\n } else {\n datesArray = Array.prototype.slice.call(dirtyDatesArray);\n }\n var result;\n var minDistance;\n datesArray.forEach(function (dirtyDate, index) {\n var currentDate = (0, _index.default)(dirtyDate);\n if (isNaN(Number(currentDate))) {\n result = NaN;\n minDistance = NaN;\n return;\n }\n var distance = Math.abs(timeToCompare - currentDate.getTime());\n if (result == null || distance < Number(minDistance)) {\n result = index;\n minDistance = distance;\n }\n });\n return result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = closestTo;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name closestTo\n * @category Common Helpers\n * @summary Return a date from the array closest to the given date.\n *\n * @description\n * Return a date from the array closest to the given date.\n *\n * @param {Date | Number} dateToCompare - the date to compare with\n * @param {Array | Array} datesArray - the array to search\n * @returns {Date | undefined} the date from the array closest to the given date or undefined if no valid value is given\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030?\n * const dateToCompare = new Date(2015, 8, 6)\n * const result = closestTo(dateToCompare, [\n * new Date(2000, 0, 1),\n * new Date(2030, 0, 1)\n * ])\n * //=> Tue Jan 01 2030 00:00:00\n */\nfunction closestTo(dirtyDateToCompare, dirtyDatesArray) {\n (0, _index2.default)(2, arguments);\n var dateToCompare = (0, _index.default)(dirtyDateToCompare);\n if (isNaN(Number(dateToCompare))) return new Date(NaN);\n var timeToCompare = dateToCompare.getTime();\n var datesArray;\n // `dirtyDatesArray` is undefined or null\n if (dirtyDatesArray == null) {\n datesArray = [];\n\n // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method\n } else if (typeof dirtyDatesArray.forEach === 'function') {\n datesArray = dirtyDatesArray;\n\n // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array\n } else {\n datesArray = Array.prototype.slice.call(dirtyDatesArray);\n }\n var result;\n var minDistance;\n datesArray.forEach(function (dirtyDate) {\n var currentDate = (0, _index.default)(dirtyDate);\n if (isNaN(Number(currentDate))) {\n result = new Date(NaN);\n minDistance = NaN;\n return;\n }\n var distance = Math.abs(timeToCompare - currentDate.getTime());\n if (result == null || distance < Number(minDistance)) {\n result = currentDate;\n minDistance = distance;\n }\n });\n return result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = compareAsc;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\nfunction compareAsc(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n var dateLeft = (0, _index.default)(dirtyDateLeft);\n var dateRight = (0, _index.default)(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1;\n // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = compareDesc;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name compareDesc\n * @category Common Helpers\n * @summary Compare the two dates reverse chronologically and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return -1 if the first date is after the second,\n * 1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989 reverse chronologically:\n * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> 1\n *\n * @example\n * // Sort the array of dates in reverse chronological order:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareDesc)\n * //=> [\n * // Sun Jul 02 1995 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Wed Feb 11 1987 00:00:00\n * // ]\n */\nfunction compareDesc(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n var dateLeft = (0, _index.default)(dirtyDateLeft);\n var dateRight = (0, _index.default)(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n if (diff > 0) {\n return -1;\n } else if (diff < 0) {\n return 1;\n // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = daysToWeeks;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name daysToWeeks\n * @category Conversion Helpers\n * @summary Convert days to weeks.\n *\n * @description\n * Convert a number of days to a full number of weeks.\n *\n * @param {number} days - number of days to be converted\n *\n * @returns {number} the number of days converted in weeks\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 14 days to weeks:\n * const result = daysToWeeks(14)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = daysToWeeks(13)\n * //=> 1\n */\nfunction daysToWeeks(days) {\n (0, _index.default)(1, arguments);\n var weeks = days / _index2.daysInWeek;\n return Math.floor(weeks);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInBusinessDays;\nvar _index = _interopRequireDefault(require(\"../addDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../isSameDay/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../isValid/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../isWeekend/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of business days\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) {\n (0, _index7.default)(2, arguments);\n var dateLeft = (0, _index6.default)(dirtyDateLeft);\n var dateRight = (0, _index6.default)(dirtyDateRight);\n if (!(0, _index4.default)(dateLeft) || !(0, _index4.default)(dateRight)) return NaN;\n var calendarDifference = (0, _index2.default)(dateLeft, dateRight);\n var sign = calendarDifference < 0 ? -1 : 1;\n var weeks = (0, _index8.default)(calendarDifference / 7);\n var result = weeks * 5;\n dateRight = (0, _index.default)(dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.default)(dateLeft, dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.default)(dateRight) ? 0 : sign;\n dateRight = (0, _index.default)(dateRight, sign);\n }\n return result === 0 ? 0 : result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInCalendarISOWeekYears;\nvar _index = _interopRequireDefault(require(\"../getISOWeekYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name differenceInCalendarISOWeekYears\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the number of calendar ISO week-numbering years between the given dates.\n *\n * @description\n * Get the number of calendar ISO week-numbering years between the given dates.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar ISO week-numbering years\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012?\n * const result = differenceInCalendarISOWeekYears(\n * new Date(2012, 0, 1),\n * new Date(2010, 0, 1)\n * )\n * //=> 2\n */\nfunction differenceInCalendarISOWeekYears(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n return (0, _index.default)(dirtyDateLeft) - (0, _index.default)(dirtyDateRight);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInCalendarISOWeeks;\nvar _index = _interopRequireDefault(require(\"../_lib/getTimezoneOffsetInMilliseconds/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfISOWeek/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MILLISECONDS_IN_WEEK = 604800000;\n\n/**\n * @name differenceInCalendarISOWeeks\n * @category ISO Week Helpers\n * @summary Get the number of calendar ISO weeks between the given dates.\n *\n * @description\n * Get the number of calendar ISO weeks between the given dates.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar ISO weeks\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014?\n * const result = differenceInCalendarISOWeeks(\n * new Date(2014, 6, 21),\n * new Date(2014, 6, 6)\n * )\n * //=> 3\n */\nfunction differenceInCalendarISOWeeks(dirtyDateLeft, dirtyDateRight) {\n (0, _index3.default)(2, arguments);\n var startOfISOWeekLeft = (0, _index2.default)(dirtyDateLeft);\n var startOfISOWeekRight = (0, _index2.default)(dirtyDateRight);\n var timestampLeft = startOfISOWeekLeft.getTime() - (0, _index.default)(startOfISOWeekLeft);\n var timestampRight = startOfISOWeekRight.getTime() - (0, _index.default)(startOfISOWeekRight);\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInCalendarQuarters;\nvar _index = _interopRequireDefault(require(\"../getQuarter/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name differenceInCalendarQuarters\n * @category Quarter Helpers\n * @summary Get the number of calendar quarters between the given dates.\n *\n * @description\n * Get the number of calendar quarters between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar quarters\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar quarters are between 31 December 2013 and 2 July 2014?\n * const result = differenceInCalendarQuarters(\n * new Date(2014, 6, 2),\n * new Date(2013, 11, 31)\n * )\n * //=> 3\n */\nfunction differenceInCalendarQuarters(dirtyDateLeft, dirtyDateRight) {\n (0, _index3.default)(2, arguments);\n var dateLeft = (0, _index2.default)(dirtyDateLeft);\n var dateRight = (0, _index2.default)(dirtyDateRight);\n var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n var quarterDiff = (0, _index.default)(dateLeft) - (0, _index.default)(dateRight);\n return yearDiff * 4 + quarterDiff;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInCalendarWeeks;\nvar _index = _interopRequireDefault(require(\"../startOfWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/getTimezoneOffsetInMilliseconds/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MILLISECONDS_IN_WEEK = 604800000;\n\n/**\n * @name differenceInCalendarWeeks\n * @category Week Helpers\n * @summary Get the number of calendar weeks between the given dates.\n *\n * @description\n * Get the number of calendar weeks between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Number} the number of calendar weeks\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // How many calendar weeks are between 5 July 2014 and 20 July 2014?\n * const result = differenceInCalendarWeeks(\n * new Date(2014, 6, 20),\n * new Date(2014, 6, 5)\n * )\n * //=> 3\n *\n * @example\n * // If the week starts on Monday,\n * // how many calendar weeks are between 5 July 2014 and 20 July 2014?\n * const result = differenceInCalendarWeeks(\n * new Date(2014, 6, 20),\n * new Date(2014, 6, 5),\n * { weekStartsOn: 1 }\n * )\n * //=> 2\n */\nfunction differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, options) {\n (0, _index3.default)(2, arguments);\n var startOfWeekLeft = (0, _index.default)(dirtyDateLeft, options);\n var startOfWeekRight = (0, _index.default)(dirtyDateRight, options);\n var timestampLeft = startOfWeekLeft.getTime() - (0, _index2.default)(startOfWeekLeft);\n var timestampRight = startOfWeekRight.getTime() - (0, _index2.default)(startOfWeekRight);\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInDays;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n// Like `compareAsc` but uses local time not UTC, which is needed\n// for accurate equality comparisons of UTC timestamps that end up\n// having the same representation in local time, e.g. one hour before\n// DST ends vs. the instant that DST ends.\nfunction compareLocalAsc(dateLeft, dateRight) {\n var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds();\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1;\n // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}\n\n/**\n * @name differenceInDays\n * @category Day Helpers\n * @summary Get the number of full days between the given dates.\n *\n * @description\n * Get the number of full day periods between two dates. Fractional days are\n * truncated towards zero.\n *\n * One \"full day\" is the distance between a local time in one day to the same\n * local time on the next or previous day. A full day can sometimes be less than\n * or more than 24 hours if a daylight savings change happens between two dates.\n *\n * To ignore DST and only measure exact 24-hour periods, use this instead:\n * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`.\n *\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full days according to the local timezone\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 365\n * // How many full days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 0\n * // How many full days are between\n * // 1 March 2020 0:00 and 1 June 2020 0:00 ?\n * // Note: because local time is used, the\n * // result will always be 92 days, even in\n * // time zones where DST starts and the\n * // period has only 92*24-1 hours.\n * const result = differenceInDays(\n * new Date(2020, 5, 1),\n * new Date(2020, 2, 1)\n * )\n//=> 92\n */\nfunction differenceInDays(dirtyDateLeft, dirtyDateRight) {\n (0, _index3.default)(2, arguments);\n var dateLeft = (0, _index.default)(dirtyDateLeft);\n var dateRight = (0, _index.default)(dirtyDateRight);\n var sign = compareLocalAsc(dateLeft, dateRight);\n var difference = Math.abs((0, _index2.default)(dateLeft, dateRight));\n dateLeft.setDate(dateLeft.getDate() - sign * difference);\n\n // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full\n // If so, result must be decreased by 1 in absolute value\n var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign);\n var result = sign * (difference - isLastDayNotFull);\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInMilliseconds;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nfunction differenceInMilliseconds(dateLeft, dateRight) {\n (0, _index2.default)(2, arguments);\n return (0, _index.default)(dateLeft).getTime() - (0, _index.default)(dateRight).getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getRoundingMethod = getRoundingMethod;\nvar roundingMap = {\n ceil: Math.ceil,\n round: Math.round,\n floor: Math.floor,\n trunc: function trunc(value) {\n return value < 0 ? Math.ceil(value) : Math.floor(value);\n } // Math.trunc is not supported by IE\n};\n\nvar defaultRoundingMethod = 'trunc';\nfunction getRoundingMethod(method) {\n return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInHours;\nvar _index = require(\"../constants/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../differenceInMilliseconds/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index4 = require(\"../_lib/roundingMethods/index.js\");\n/**\n * @name differenceInHours\n * @category Hour Helpers\n * @summary Get the number of hours between the given dates.\n *\n * @description\n * Get the number of hours between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of hours\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00?\n * const result = differenceInHours(\n * new Date(2014, 6, 2, 19, 0),\n * new Date(2014, 6, 2, 6, 50)\n * )\n * //=> 12\n */\nfunction differenceInHours(dateLeft, dateRight, options) {\n (0, _index3.default)(2, arguments);\n var diff = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInHour;\n return (0, _index4.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = subISOWeekYears;\nvar _index = _interopRequireDefault(require(\"../addISOWeekYears/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name subISOWeekYears\n * @category ISO Week-Numbering Year Helpers\n * @summary Subtract the specified number of ISO week-numbering years from the given date.\n *\n * @description\n * Subtract the specified number of ISO week-numbering years from the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of ISO week-numbering years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the ISO week-numbering years subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 5 ISO week-numbering years from 1 September 2014:\n * const result = subISOWeekYears(new Date(2014, 8, 1), 5)\n * //=> Mon Aug 31 2009 00:00:00\n */\nfunction subISOWeekYears(dirtyDate, dirtyAmount) {\n (0, _index2.default)(2, arguments);\n var amount = (0, _index3.default)(dirtyAmount);\n return (0, _index.default)(dirtyDate, -amount);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInISOWeekYears;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarISOWeekYears/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../compareAsc/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../subISOWeekYears/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name differenceInISOWeekYears\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the number of full ISO week-numbering years between the given dates.\n *\n * @description\n * Get the number of full ISO week-numbering years between the given dates.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full ISO week-numbering years\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012?\n * const result = differenceInISOWeekYears(\n * new Date(2012, 0, 1),\n * new Date(2010, 0, 1)\n * )\n * //=> 1\n */\nfunction differenceInISOWeekYears(dirtyDateLeft, dirtyDateRight) {\n (0, _index5.default)(2, arguments);\n var dateLeft = (0, _index.default)(dirtyDateLeft);\n var dateRight = (0, _index.default)(dirtyDateRight);\n var sign = (0, _index3.default)(dateLeft, dateRight);\n var difference = Math.abs((0, _index2.default)(dateLeft, dateRight));\n dateLeft = (0, _index4.default)(dateLeft, sign * difference);\n\n // Math.abs(diff in full ISO years - diff in calendar ISO years) === 1\n // if last calendar ISO year is not full\n // If so, result must be decreased by 1 in absolute value\n var isLastISOWeekYearNotFull = Number((0, _index3.default)(dateLeft, dateRight) === -sign);\n var result = sign * (difference - isLastISOWeekYearNotFull);\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInMinutes;\nvar _index = require(\"../constants/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../differenceInMilliseconds/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index4 = require(\"../_lib/roundingMethods/index.js\");\n/**\n * @name differenceInMinutes\n * @category Minute Helpers\n * @summary Get the number of minutes between the given dates.\n *\n * @description\n * Get the signed number of full (rounded towards 0) minutes between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of minutes\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?\n * const result = differenceInMinutes(\n * new Date(2014, 6, 2, 12, 20, 0),\n * new Date(2014, 6, 2, 12, 7, 59)\n * )\n * //=> 12\n *\n * @example\n * // How many minutes are between 10:01:59 and 10:00:00\n * const result = differenceInMinutes(\n * new Date(2000, 0, 1, 10, 0, 0),\n * new Date(2000, 0, 1, 10, 1, 59)\n * )\n * //=> -1\n */\nfunction differenceInMinutes(dateLeft, dateRight, options) {\n (0, _index3.default)(2, arguments);\n var diff = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInMinute;\n return (0, _index4.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLastDayOfMonth;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../endOfDay/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../endOfMonth/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nfunction isLastDayOfMonth(dirtyDate) {\n (0, _index4.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n return (0, _index2.default)(date).getTime() === (0, _index3.default)(date).getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInMonths;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarMonths/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../compareAsc/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../isLastDayOfMonth/index.js\"));\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @description\n * Get the number of full months between the given dates using trunc as a default rounding method.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nfunction differenceInMonths(dirtyDateLeft, dirtyDateRight) {\n (0, _index4.default)(2, arguments);\n var dateLeft = (0, _index.default)(dirtyDateLeft);\n var dateRight = (0, _index.default)(dirtyDateRight);\n var sign = (0, _index3.default)(dateLeft, dateRight);\n var difference = Math.abs((0, _index2.default)(dateLeft, dateRight));\n var result;\n\n // Check for the difference of less than month\n if (difference < 1) {\n result = 0;\n } else {\n if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {\n // This will check if the date is end of Feb and assign a higher end of month date\n // to compare it with Jan\n dateLeft.setDate(30);\n }\n dateLeft.setMonth(dateLeft.getMonth() - sign * difference);\n\n // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full\n // If so, result must be decreased by 1 in absolute value\n var isLastMonthNotFull = (0, _index3.default)(dateLeft, dateRight) === -sign;\n\n // Check for cases of one full calendar month\n if ((0, _index5.default)((0, _index.default)(dirtyDateLeft)) && difference === 1 && (0, _index3.default)(dirtyDateLeft, dateRight) === 1) {\n isLastMonthNotFull = false;\n }\n result = sign * (difference - Number(isLastMonthNotFull));\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInQuarters;\nvar _index = _interopRequireDefault(require(\"../differenceInMonths/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = require(\"../_lib/roundingMethods/index.js\");\n/**\n * @name differenceInQuarters\n * @category Quarter Helpers\n * @summary Get the number of quarters between the given dates.\n *\n * @description\n * Get the number of quarters between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of full quarters\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full quarters are between 31 December 2013 and 2 July 2014?\n * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31))\n * //=> 2\n */\nfunction differenceInQuarters(dateLeft, dateRight, options) {\n (0, _index2.default)(2, arguments);\n var diff = (0, _index.default)(dateLeft, dateRight) / 3;\n return (0, _index3.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInSeconds;\nvar _index = _interopRequireDefault(require(\"../differenceInMilliseconds/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = require(\"../_lib/roundingMethods/index.js\");\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of seconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nfunction differenceInSeconds(dateLeft, dateRight, options) {\n (0, _index2.default)(2, arguments);\n var diff = (0, _index.default)(dateLeft, dateRight) / 1000;\n return (0, _index3.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInWeeks;\nvar _index = _interopRequireDefault(require(\"../differenceInDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = require(\"../_lib/roundingMethods/index.js\");\n/**\n * @name differenceInWeeks\n * @category Week Helpers\n * @summary Get the number of full weeks between the given dates.\n *\n * @description\n * Get the number of full weeks between two dates. Fractional weeks are\n * truncated towards zero by default.\n *\n * One \"full week\" is the distance between a local time in one day to the same\n * local time 7 days earlier or later. A full week can sometimes be less than\n * or more than 7*24 hours if a daylight savings change happens between two dates.\n *\n * To ignore DST and only measure exact 7*24-hour periods, use this instead:\n * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`.\n *\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of full weeks\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full weeks are between 5 July 2014 and 20 July 2014?\n * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5))\n * //=> 2\n *\n * // How many full weeks are between\n * // 1 March 2020 0:00 and 6 June 2020 0:00 ?\n * // Note: because local time is used, the\n * // result will always be 8 weeks (54 days),\n * // even if DST starts and the period has\n * // only 54*24-1 hours.\n * const result = differenceInWeeks(\n * new Date(2020, 5, 1),\n * new Date(2020, 2, 6)\n * )\n * //=> 8\n */\nfunction differenceInWeeks(dateLeft, dateRight, options) {\n (0, _index2.default)(2, arguments);\n var diff = (0, _index.default)(dateLeft, dateRight) / 7;\n return (0, _index3.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = differenceInYears;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarYears/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../compareAsc/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name differenceInYears\n * @category Year Helpers\n * @summary Get the number of full years between the given dates.\n *\n * @description\n * Get the number of full years between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full years\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full years are between 31 December 2013 and 11 February 2015?\n * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31))\n * //=> 1\n */\nfunction differenceInYears(dirtyDateLeft, dirtyDateRight) {\n (0, _index4.default)(2, arguments);\n var dateLeft = (0, _index.default)(dirtyDateLeft);\n var dateRight = (0, _index.default)(dirtyDateRight);\n var sign = (0, _index3.default)(dateLeft, dateRight);\n var difference = Math.abs((0, _index2.default)(dateLeft, dateRight));\n\n // Set both dates to a valid leap year for accurate comparison when dealing\n // with leap days\n dateLeft.setFullYear(1584);\n dateRight.setFullYear(1584);\n\n // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full\n // If so, result must be decreased by 1 in absolute value\n var isLastYearNotFull = (0, _index3.default)(dateLeft, dateRight) === -sign;\n var result = sign * (difference - Number(isLastYearNotFull));\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachDayOfInterval;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachDayOfInterval\n * @category Interval Helpers\n * @summary Return the array of dates within the specified time interval.\n *\n * @description\n * Return the array of dates within the specified time interval.\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Object} [options] - an object with options.\n * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.\n * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.step` must be a number greater than 1\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each day between 6 October 2014 and 10 October 2014:\n * const result = eachDayOfInterval({\n * start: new Date(2014, 9, 6),\n * end: new Date(2014, 9, 10)\n * })\n * //=> [\n * // Mon Oct 06 2014 00:00:00,\n * // Tue Oct 07 2014 00:00:00,\n * // Wed Oct 08 2014 00:00:00,\n * // Thu Oct 09 2014 00:00:00,\n * // Fri Oct 10 2014 00:00:00\n * // ]\n */\nfunction eachDayOfInterval(dirtyInterval, options) {\n var _options$step;\n (0, _index2.default)(1, arguments);\n var interval = dirtyInterval || {};\n var startDate = (0, _index.default)(interval.start);\n var endDate = (0, _index.default)(interval.end);\n var endTime = endDate.getTime();\n\n // Throw an exception if start date is after end date or if any date is `Invalid Date`\n if (!(startDate.getTime() <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n var dates = [];\n var currentDate = startDate;\n currentDate.setHours(0, 0, 0, 0);\n var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1);\n if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');\n while (currentDate.getTime() <= endTime) {\n dates.push((0, _index.default)(currentDate));\n currentDate.setDate(currentDate.getDate() + step);\n currentDate.setHours(0, 0, 0, 0);\n }\n return dates;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachHourOfInterval;\nvar _index = _interopRequireDefault(require(\"../addHours/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachHourOfInterval\n * @category Interval Helpers\n * @summary Return the array of hours within the specified time interval.\n *\n * @description\n * Return the array of hours within the specified time interval.\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Object} [options] - an object with options.\n * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.\n * @returns {Date[]} the array with starts of hours from the hour of the interval start to the hour of the interval end\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.step` must be a number greater than 1\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00\n * const result = eachHourOfInterval({\n * start: new Date(2014, 9, 6, 12),\n * end: new Date(2014, 9, 6, 15)\n * })\n * //=> [\n * // Mon Oct 06 2014 12:00:00,\n * // Mon Oct 06 2014 13:00:00,\n * // Mon Oct 06 2014 14:00:00,\n * // Mon Oct 06 2014 15:00:00\n * // ]\n */\nfunction eachHourOfInterval(dirtyInterval, options) {\n var _options$step;\n (0, _index3.default)(1, arguments);\n var interval = dirtyInterval || {};\n var startDate = (0, _index2.default)(interval.start);\n var endDate = (0, _index2.default)(interval.end);\n var startTime = startDate.getTime();\n var endTime = endDate.getTime();\n\n // Throw an exception if start date is after end date or if any date is `Invalid Date`\n if (!(startTime <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n var dates = [];\n var currentDate = startDate;\n currentDate.setMinutes(0, 0, 0);\n var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1);\n if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');\n while (currentDate.getTime() <= endTime) {\n dates.push((0, _index2.default)(currentDate));\n currentDate = (0, _index.default)(currentDate, step);\n }\n return dates;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfMinute;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name startOfMinute\n * @category Minute Helpers\n * @summary Return the start of a minute for the given date.\n *\n * @description\n * Return the start of a minute for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a minute\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a minute for 1 December 2014 22:15:45.400:\n * const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))\n * //=> Mon Dec 01 2014 22:15:00\n */\nfunction startOfMinute(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n date.setSeconds(0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachMinuteOfInterval;\nvar _index = _interopRequireDefault(require(\"../addMinutes/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../startOfMinute/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachMinuteOfInterval\n * @category Interval Helpers\n * @summary Return the array of minutes within the specified time interval.\n *\n * @description\n * Returns the array of minutes within the specified time interval.\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Object} [options] - an object with options.\n * @param {Number} [options.step=1] - the step to increment by. The step must be equal to or greater than 1\n * @throws {TypeError} 1 argument required\n * @returns {Date[]} the array with starts of minutes from the minute of the interval start to the minute of the interval end\n * @throws {RangeError} `options.step` must be a number equal to or greater than 1\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03\n * const result = eachMinuteOfInterval({\n * start: new Date(2014, 9, 14, 13),\n * end: new Date(2014, 9, 14, 13, 3)\n * })\n * //=> [\n * // Wed Oct 14 2014 13:00:00,\n * // Wed Oct 14 2014 13:01:00,\n * // Wed Oct 14 2014 13:02:00,\n * // Wed Oct 14 2014 13:03:00\n * // ]\n */\nfunction eachMinuteOfInterval(interval, options) {\n var _options$step;\n (0, _index4.default)(1, arguments);\n var startDate = (0, _index3.default)((0, _index2.default)(interval.start));\n var endDate = (0, _index2.default)(interval.end);\n var startTime = startDate.getTime();\n var endTime = endDate.getTime();\n if (startTime >= endTime) {\n throw new RangeError('Invalid interval');\n }\n var dates = [];\n var currentDate = startDate;\n var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1);\n if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number equal to or greater than 1');\n while (currentDate.getTime() <= endTime) {\n dates.push((0, _index2.default)(currentDate));\n currentDate = (0, _index.default)(currentDate, step);\n }\n return dates;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachQuarterOfInterval;\nvar _index = _interopRequireDefault(require(\"../addQuarters/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfQuarter/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachQuarterOfInterval\n * @category Interval Helpers\n * @summary Return the array of quarters within the specified time interval.\n *\n * @description\n * Return the array of quarters within the specified time interval.\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @returns {Date[]} the array with starts of quarters from the quarter of the interval start to the quarter of the interval end\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each quarter within interval 6 February 2014 - 10 August 2014:\n * const result = eachQuarterOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2014, 7, 10)\n * })\n * //=> [\n * // Wed Jan 01 2014 00:00:00,\n * // Tue Apr 01 2014 00:00:00,\n * // Tue Jul 01 2014 00:00:00,\n * // ]\n */\nfunction eachQuarterOfInterval(dirtyInterval) {\n (0, _index4.default)(1, arguments);\n var interval = dirtyInterval || {};\n var startDate = (0, _index3.default)(interval.start);\n var endDate = (0, _index3.default)(interval.end);\n var endTime = endDate.getTime();\n\n // Throw an exception if start date is after end date or if any date is `Invalid Date`\n if (!(startDate.getTime() <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n var startDateQuarter = (0, _index2.default)(startDate);\n var endDateQuarter = (0, _index2.default)(endDate);\n endTime = endDateQuarter.getTime();\n var quarters = [];\n var currentQuarter = startDateQuarter;\n while (currentQuarter.getTime() <= endTime) {\n quarters.push((0, _index3.default)(currentQuarter));\n currentQuarter = (0, _index.default)(currentQuarter, 1);\n }\n return quarters;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachWeekOfInterval;\nvar _index = _interopRequireDefault(require(\"../addWeeks/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfWeek/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachWeekOfInterval\n * @category Interval Helpers\n * @summary Return the array of weeks within the specified time interval.\n *\n * @description\n * Return the array of weeks within the specified time interval.\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each week within interval 6 October 2014 - 23 November 2014:\n * const result = eachWeekOfInterval({\n * start: new Date(2014, 9, 6),\n * end: new Date(2014, 10, 23)\n * })\n * //=> [\n * // Sun Oct 05 2014 00:00:00,\n * // Sun Oct 12 2014 00:00:00,\n * // Sun Oct 19 2014 00:00:00,\n * // Sun Oct 26 2014 00:00:00,\n * // Sun Nov 02 2014 00:00:00,\n * // Sun Nov 09 2014 00:00:00,\n * // Sun Nov 16 2014 00:00:00,\n * // Sun Nov 23 2014 00:00:00\n * // ]\n */\nfunction eachWeekOfInterval(dirtyInterval, options) {\n (0, _index4.default)(1, arguments);\n var interval = dirtyInterval || {};\n var startDate = (0, _index3.default)(interval.start);\n var endDate = (0, _index3.default)(interval.end);\n var endTime = endDate.getTime();\n\n // Throw an exception if start date is after end date or if any date is `Invalid Date`\n if (!(startDate.getTime() <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n var startDateWeek = (0, _index2.default)(startDate, options);\n var endDateWeek = (0, _index2.default)(endDate, options);\n\n // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet\n startDateWeek.setHours(15);\n endDateWeek.setHours(15);\n endTime = endDateWeek.getTime();\n var weeks = [];\n var currentWeek = startDateWeek;\n while (currentWeek.getTime() <= endTime) {\n currentWeek.setHours(0);\n weeks.push((0, _index3.default)(currentWeek));\n currentWeek = (0, _index.default)(currentWeek, 1);\n currentWeek.setHours(15);\n }\n return weeks;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachWeekendOfInterval;\nvar _index = _interopRequireDefault(require(\"../eachDayOfInterval/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isSunday/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../isWeekend/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachWeekendOfInterval\n * @category Interval Helpers\n * @summary List all the Saturdays and Sundays in the given date interval.\n *\n * @description\n * Get all the Saturdays and Sundays in the given date interval.\n *\n * @param {Interval} interval - the given interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @returns {Date[]} an array containing all the Saturdays and Sundays\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Lists all Saturdays and Sundays in the given date interval\n * const result = eachWeekendOfInterval({\n * start: new Date(2018, 8, 17),\n * end: new Date(2018, 8, 30)\n * })\n * //=> [\n * // Sat Sep 22 2018 00:00:00,\n * // Sun Sep 23 2018 00:00:00,\n * // Sat Sep 29 2018 00:00:00,\n * // Sun Sep 30 2018 00:00:00\n * // ]\n */\nfunction eachWeekendOfInterval(interval) {\n (0, _index4.default)(1, arguments);\n var dateInterval = (0, _index.default)(interval);\n var weekends = [];\n var index = 0;\n while (index < dateInterval.length) {\n var date = dateInterval[index++];\n if ((0, _index3.default)(date)) {\n weekends.push(date);\n if ((0, _index2.default)(date)) index = index + 5;\n }\n }\n return weekends;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachWeekendOfMonth;\nvar _index = _interopRequireDefault(require(\"../eachWeekendOfInterval/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfMonth/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../endOfMonth/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachWeekendOfMonth\n * @category Month Helpers\n * @summary List all the Saturdays and Sundays in the given month.\n *\n * @description\n * Get all the Saturdays and Sundays in the given month.\n *\n * @param {Date|Number} date - the given month\n * @returns {Date[]} an array containing all the Saturdays and Sundays\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} The passed date is invalid\n *\n * @example\n * // Lists all Saturdays and Sundays in the given month\n * const result = eachWeekendOfMonth(new Date(2022, 1, 1))\n * //=> [\n * // Sat Feb 05 2022 00:00:00,\n * // Sun Feb 06 2022 00:00:00,\n * // Sat Feb 12 2022 00:00:00,\n * // Sun Feb 13 2022 00:00:00,\n * // Sat Feb 19 2022 00:00:00,\n * // Sun Feb 20 2022 00:00:00,\n * // Sat Feb 26 2022 00:00:00,\n * // Sun Feb 27 2022 00:00:00\n * // ]\n */\nfunction eachWeekendOfMonth(dirtyDate) {\n (0, _index4.default)(1, arguments);\n var startDate = (0, _index2.default)(dirtyDate);\n if (isNaN(startDate.getTime())) throw new RangeError('The passed date is invalid');\n var endDate = (0, _index3.default)(dirtyDate);\n return (0, _index.default)({\n start: startDate,\n end: endDate\n });\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = eachWeekendOfYear;\nvar _index = _interopRequireDefault(require(\"../eachWeekendOfInterval/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../endOfYear/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../startOfYear/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name eachWeekendOfYear\n * @category Year Helpers\n * @summary List all the Saturdays and Sundays in the year.\n *\n * @description\n * Get all the Saturdays and Sundays in the year.\n *\n * @param {Date|Number} date - the given year\n * @returns {Date[]} an array containing all the Saturdays and Sundays\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} The passed date is invalid\n *\n * @example\n * // Lists all Saturdays and Sundays in the year\n * const result = eachWeekendOfYear(new Date(2020, 1, 1))\n * //=> [\n * // Sat Jan 03 2020 00:00:00,\n * // Sun Jan 04 2020 00:00:00,\n * // ...\n * // Sun Dec 27 2020 00:00:00\n * // ]\n * ]\n */\nfunction eachWeekendOfYear(dirtyDate) {\n (0, _index4.default)(1, arguments);\n var startDate = (0, _index3.default)(dirtyDate);\n var endDate = (0, _index2.default)(dirtyDate);\n return (0, _index.default)({\n start: startDate,\n end: endDate\n });\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfDecade;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfDecade\n * @category Decade Helpers\n * @summary Return the end of a decade for the given date.\n *\n * @description\n * Return the end of a decade for the given date.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a decade\n * @param {Object} [options] - an object with options.\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // The end of a decade for 12 May 1984 00:00:00:\n * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00))\n * //=> Dec 31 1989 23:59:59.999\n */\nfunction endOfDecade(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var year = date.getFullYear();\n var decade = 9 + Math.floor(year / 10) * 10;\n date.setFullYear(decade, 11, 31);\n date.setHours(23, 59, 59, 999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfHour;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfHour\n * @category Hour Helpers\n * @summary Return the end of an hour for the given date.\n *\n * @description\n * Return the end of an hour for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of an hour\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of an hour for 2 September 2014 11:55:00:\n * const result = endOfHour(new Date(2014, 8, 2, 11, 55))\n * //=> Tue Sep 02 2014 11:59:59.999\n */\nfunction endOfHour(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n date.setMinutes(59, 59, 999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfISOWeek;\nvar _index = _interopRequireDefault(require(\"../endOfWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the end of an ISO week for the given date.\n *\n * @description\n * Return the end of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of an ISO week\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of an ISO week for 2 September 2014 11:55:00:\n * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nfunction endOfISOWeek(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, {\n weekStartsOn: 1\n });\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfISOWeekYear;\nvar _index = _interopRequireDefault(require(\"../getISOWeekYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfISOWeek/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the end of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the end of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of an ISO week-numbering year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of an ISO week-numbering year for 2 July 2005:\n * const result = endOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Sun Jan 01 2006 23:59:59.999\n */\nfunction endOfISOWeekYear(dirtyDate) {\n (0, _index3.default)(1, arguments);\n var year = (0, _index.default)(dirtyDate);\n var fourthOfJanuaryOfNextYear = new Date(0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n var date = (0, _index2.default)(fourthOfJanuaryOfNextYear);\n date.setMilliseconds(date.getMilliseconds() - 1);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfMinute;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfMinute\n * @category Minute Helpers\n * @summary Return the end of a minute for the given date.\n *\n * @description\n * Return the end of a minute for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a minute\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a minute for 1 December 2014 22:15:45.400:\n * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))\n * //=> Mon Dec 01 2014 22:15:59.999\n */\nfunction endOfMinute(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n date.setSeconds(59, 999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfQuarter;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfQuarter\n * @category Quarter Helpers\n * @summary Return the end of a year quarter for the given date.\n *\n * @description\n * Return the end of a year quarter for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a quarter\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a quarter for 2 September 2014 11:55:00:\n * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nfunction endOfQuarter(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var currentMonth = date.getMonth();\n var month = currentMonth - currentMonth % 3 + 3;\n date.setMonth(month, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfSecond;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name endOfSecond\n * @category Second Helpers\n * @summary Return the end of a second for the given date.\n *\n * @description\n * Return the end of a second for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a second\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a second for 1 December 2014 22:15:45.400:\n * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))\n * //=> Mon Dec 01 2014 22:15:45.999\n */\nfunction endOfSecond(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n date.setMilliseconds(999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfToday;\nvar _index = _interopRequireDefault(require(\"../endOfDay/index.js\"));\n/**\n * @name endOfToday\n * @category Day Helpers\n * @summary Return the end of today.\n * @pure false\n *\n * @description\n * Return the end of today.\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the end of today\n *\n * @example\n * // If today is 6 October 2014:\n * const result = endOfToday()\n * //=> Mon Oct 6 2014 23:59:59.999\n */\nfunction endOfToday() {\n return (0, _index.default)(Date.now());\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfTomorrow;\n/**\n * @name endOfTomorrow\n * @category Day Helpers\n * @summary Return the end of tomorrow.\n * @pure false\n *\n * @description\n * Return the end of tomorrow.\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `new Date()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the end of tomorrow\n *\n * @example\n * // If today is 6 October 2014:\n * const result = endOfTomorrow()\n * //=> Tue Oct 7 2014 23:59:59.999\n */\nfunction endOfTomorrow() {\n var now = new Date();\n var year = now.getFullYear();\n var month = now.getMonth();\n var day = now.getDate();\n var date = new Date(0);\n date.setFullYear(year, month, day + 1);\n date.setHours(23, 59, 59, 999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = endOfYesterday;\n/**\n * @name endOfYesterday\n * @category Day Helpers\n * @summary Return the end of yesterday.\n * @pure false\n *\n * @description\n * Return the end of yesterday.\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `new Date()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the end of yesterday\n *\n * @example\n * // If today is 6 October 2014:\n * const result = endOfYesterday()\n * //=> Sun Oct 5 2014 23:59:59.999\n */\nfunction endOfYesterday() {\n var now = new Date();\n var year = now.getFullYear();\n var month = now.getMonth();\n var day = now.getDate();\n var date = new Date(0);\n date.setFullYear(year, month, day - 1);\n date.setHours(23, 59, 59, 999);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = cloneObject;\nvar _index = _interopRequireDefault(require(\"../assign/index.js\"));\nfunction cloneObject(object) {\n return (0, _index.default)({}, object);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatDistance;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../compareAsc/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../differenceInMonths/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../differenceInSeconds/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/defaultLocale/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"../_lib/cloneObject/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"../_lib/assign/index.js\"));\nvar _index9 = _interopRequireDefault(require(\"../_lib/getTimezoneOffsetInMilliseconds/index.js\"));\nvar _index10 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MINUTES_IN_DAY = 1440;\nvar MINUTES_IN_ALMOST_TWO_DAYS = 2520;\nvar MINUTES_IN_MONTH = 43200;\nvar MINUTES_IN_TWO_MONTHS = 86400;\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\n\nfunction formatDistance(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale;\n (0, _index10.default)(2, arguments);\n var defaultOptions = (0, _index.getDefaultOptions)();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index5.default;\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain formatDistance property');\n }\n var comparison = (0, _index2.default)(dirtyDate, dirtyBaseDate);\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n var localizeOptions = (0, _index8.default)((0, _index7.default)(options), {\n addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n comparison: comparison\n });\n var dateLeft;\n var dateRight;\n if (comparison > 0) {\n dateLeft = (0, _index6.default)(dirtyBaseDate);\n dateRight = (0, _index6.default)(dirtyDate);\n } else {\n dateLeft = (0, _index6.default)(dirtyDate);\n dateRight = (0, _index6.default)(dirtyBaseDate);\n }\n var seconds = (0, _index4.default)(dateRight, dateLeft);\n var offsetInSeconds = ((0, _index9.default)(dateRight) - (0, _index9.default)(dateLeft)) / 1000;\n var minutes = Math.round((seconds - offsetInSeconds) / 60);\n var months;\n\n // 0 up to 2 mins\n if (minutes < 2) {\n if (options !== null && options !== void 0 && options.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance('halfAMinute', 0, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', minutes, localizeOptions);\n }\n }\n\n // 2 mins up to 0.75 hrs\n } else if (minutes < 45) {\n return locale.formatDistance('xMinutes', minutes, localizeOptions);\n\n // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance('aboutXHours', 1, localizeOptions);\n\n // 1.5 hrs up to 24 hrs\n } else if (minutes < MINUTES_IN_DAY) {\n var hours = Math.round(minutes / 60);\n return locale.formatDistance('aboutXHours', hours, localizeOptions);\n\n // 1 day up to 1.75 days\n } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {\n return locale.formatDistance('xDays', 1, localizeOptions);\n\n // 1.75 days up to 30 days\n } else if (minutes < MINUTES_IN_MONTH) {\n var days = Math.round(minutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions);\n\n // 1 month up to 2 months\n } else if (minutes < MINUTES_IN_TWO_MONTHS) {\n months = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('aboutXMonths', months, localizeOptions);\n }\n months = (0, _index3.default)(dateRight, dateLeft);\n\n // 2 months up to 12 months\n if (months < 12) {\n var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('xMonths', nearestMonth, localizeOptions);\n\n // 1 year up to max Date\n } else {\n var monthsSinceStartOfYear = months % 12;\n var years = Math.floor(months / 12);\n\n // N years up to 1 years 3 months\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance('aboutXYears', years, localizeOptions);\n\n // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance('overXYears', years, localizeOptions);\n\n // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance('almostXYears', years + 1, localizeOptions);\n }\n }\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatDistanceStrict;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../_lib/getTimezoneOffsetInMilliseconds/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../compareAsc/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/cloneObject/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../_lib/assign/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"../_lib/defaultLocale/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nfunction formatDistanceStrict(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale, _options$roundingMeth;\n (0, _index8.default)(2, arguments);\n var defaultOptions = (0, _index.getDefaultOptions)();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index7.default;\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n var comparison = (0, _index3.default)(dirtyDate, dirtyBaseDate);\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n var localizeOptions = (0, _index6.default)((0, _index5.default)(options), {\n addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n comparison: comparison\n });\n var dateLeft;\n var dateRight;\n if (comparison > 0) {\n dateLeft = (0, _index4.default)(dirtyBaseDate);\n dateRight = (0, _index4.default)(dirtyDate);\n } else {\n dateLeft = (0, _index4.default)(dirtyDate);\n dateRight = (0, _index4.default)(dirtyBaseDate);\n }\n var roundingMethod = String((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : 'round');\n var roundingMethodFn;\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = (0, _index2.default)(dateRight) - (0, _index2.default)(dateLeft);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var defaultUnit = options === null || options === void 0 ? void 0 : options.unit;\n var unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(defaultUnit);\n }\n\n // 0 up to 60 seconds\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && defaultUnit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions);\n\n // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatDistanceToNow;\nvar _index = _interopRequireDefault(require(\"../formatDistance/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - the object with options\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\nfunction formatDistanceToNow(dirtyDate, options) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, Date.now(), options);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatDistanceToNowStrict;\nvar _index = _interopRequireDefault(require(\"../formatDistanceStrict/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name formatDistanceToNowStrict\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNowStrict(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNowStrict(\n * new Date(2015, 0, 1, 0, 0, 15)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in 1 year'\n *\n * @example\n * // If today is 28 January 2015,\n * // what is the distance to 1 January 2015, in months, rounded up??\n * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {locale: eoLocale}\n * )\n * //=> '1 jaro'\n */\nfunction formatDistanceToNowStrict(dirtyDate, options) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, Date.now(), options);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatDuration;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../_lib/defaultLocale/index.js\"));\nvar defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds'];\n\n/**\n * @name formatDuration\n * @category Common Helpers\n * @summary Formats a duration in human-readable format\n *\n * @description\n * Return human-readable duration string i.e. \"9 months 2 days\"\n *\n * @param {Duration} duration - the duration to format\n * @param {Object} [options] - an object with options.\n * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format\n * @param {boolean} [options.zero=false] - should zeros be included in the output?\n * @param {string} [options.delimiter=' '] - delimiter string\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {string} the formatted date string\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Format full duration\n * formatDuration({\n * years: 2,\n * months: 9,\n * weeks: 1,\n * days: 7,\n * hours: 5,\n * minutes: 9,\n * seconds: 30\n * })\n * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds'\n *\n * @example\n * // Format partial duration\n * formatDuration({ months: 9, days: 2 })\n * //=> '9 months 2 days'\n *\n * @example\n * // Customize the format\n * formatDuration(\n * {\n * years: 2,\n * months: 9,\n * weeks: 1,\n * days: 7,\n * hours: 5,\n * minutes: 9,\n * seconds: 30\n * },\n * { format: ['months', 'weeks'] }\n * ) === '9 months 1 week'\n *\n * @example\n * // Customize the zeros presence\n * formatDuration({ years: 0, months: 9 })\n * //=> '9 months'\n * formatDuration({ years: 0, months: 9 }, { zero: true })\n * //=> '0 years 9 months'\n *\n * @example\n * // Customize the delimiter\n * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' })\n * //=> '2 years, 9 months, 3 weeks'\n */\nfunction formatDuration(duration, options) {\n var _ref, _options$locale, _options$format, _options$zero, _options$delimiter;\n if (arguments.length < 1) {\n throw new TypeError(\"1 argument required, but only \".concat(arguments.length, \" present\"));\n }\n var defaultOptions = (0, _index.getDefaultOptions)();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index2.default;\n var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat;\n var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false;\n var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : ' ';\n if (!locale.formatDistance) {\n return '';\n }\n var result = format.reduce(function (acc, unit) {\n var token = \"x\".concat(unit.replace(/(^.)/, function (m) {\n return m.toUpperCase();\n }));\n var value = duration[unit];\n if (typeof value === 'number' && (zero || duration[unit])) {\n return acc.concat(locale.formatDistance(token, value));\n }\n return acc;\n }, []).join(delimiter);\n return result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatISO;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/addLeadingZeros/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name formatISO\n * @category Common Helpers\n * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).\n *\n * @description\n * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.\n * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both.\n * @returns {String} the formatted date string (in local time zone)\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.format` must be 'extended' or 'basic'\n * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918T190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, date only:\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52Z'\n */\nfunction formatISO(date, options) {\n var _options$format, _options$representati;\n (0, _index3.default)(1, arguments);\n var originalDate = (0, _index.default)(date);\n if (isNaN(originalDate.getTime())) {\n throw new RangeError('Invalid time value');\n }\n var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended');\n var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete');\n if (format !== 'extended' && format !== 'basic') {\n throw new RangeError(\"format must be 'extended' or 'basic'\");\n }\n if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {\n throw new RangeError(\"representation must be 'date', 'time', or 'complete'\");\n }\n var result = '';\n var tzOffset = '';\n var dateDelimiter = format === 'extended' ? '-' : '';\n var timeDelimiter = format === 'extended' ? ':' : '';\n\n // Representation is either 'date' or 'complete'\n if (representation !== 'time') {\n var day = (0, _index2.default)(originalDate.getDate(), 2);\n var month = (0, _index2.default)(originalDate.getMonth() + 1, 2);\n var year = (0, _index2.default)(originalDate.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = \"\".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== 'date') {\n // Add the timezone.\n var offset = originalDate.getTimezoneOffset();\n if (offset !== 0) {\n var absoluteOffset = Math.abs(offset);\n var hourOffset = (0, _index2.default)(Math.floor(absoluteOffset / 60), 2);\n var minuteOffset = (0, _index2.default)(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n var sign = offset < 0 ? '+' : '-';\n tzOffset = \"\".concat(sign).concat(hourOffset, \":\").concat(minuteOffset);\n } else {\n tzOffset = 'Z';\n }\n var hour = (0, _index2.default)(originalDate.getHours(), 2);\n var minute = (0, _index2.default)(originalDate.getMinutes(), 2);\n var second = (0, _index2.default)(originalDate.getSeconds(), 2);\n\n // If there's also date, separate it with time with 'T'\n var separator = result === '' ? '' : 'T';\n\n // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined.\n var time = [hour, minute, second].join(timeDelimiter);\n\n // HHmmss or HH:mm:ss.\n result = \"\".concat(result).concat(separator).concat(time).concat(tzOffset);\n }\n return result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatISO9075;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isValid/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/addLeadingZeros/index.js\"));\n/**\n * @name formatISO9075\n * @category Common Helpers\n * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format).\n *\n * @description\n * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.\n * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time, or both.\n * @returns {String} the formatted date string\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.format` must be 'extended' or 'basic'\n * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18 19:00:52'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075, short format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918 190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, date only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, time only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52'\n */\nfunction formatISO9075(dirtyDate, options) {\n var _options$format, _options$representati;\n if (arguments.length < 1) {\n throw new TypeError(\"1 argument required, but only \".concat(arguments.length, \" present\"));\n }\n var originalDate = (0, _index.default)(dirtyDate);\n if (!(0, _index2.default)(originalDate)) {\n throw new RangeError('Invalid time value');\n }\n var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended');\n var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete');\n if (format !== 'extended' && format !== 'basic') {\n throw new RangeError(\"format must be 'extended' or 'basic'\");\n }\n if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {\n throw new RangeError(\"representation must be 'date', 'time', or 'complete'\");\n }\n var result = '';\n var dateDelimiter = format === 'extended' ? '-' : '';\n var timeDelimiter = format === 'extended' ? ':' : '';\n\n // Representation is either 'date' or 'complete'\n if (representation !== 'time') {\n var day = (0, _index3.default)(originalDate.getDate(), 2);\n var month = (0, _index3.default)(originalDate.getMonth() + 1, 2);\n var year = (0, _index3.default)(originalDate.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = \"\".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== 'date') {\n var hour = (0, _index3.default)(originalDate.getHours(), 2);\n var minute = (0, _index3.default)(originalDate.getMinutes(), 2);\n var second = (0, _index3.default)(originalDate.getSeconds(), 2);\n\n // If there's also date, separate it with time with a space\n var separator = result === '' ? '' : ' ';\n\n // HHmmss or HH:mm:ss.\n result = \"\".concat(result).concat(separator).concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second);\n }\n return result;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatISODuration;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name formatISODuration\n * @category Common Helpers\n * @summary Format a duration object according as ISO 8601 duration string\n *\n * @description\n * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm)\n *\n * @param {Duration} duration - the duration to format\n *\n * @returns {String} The ISO 8601 duration string\n * @throws {TypeError} Requires 1 argument\n * @throws {Error} Argument must be an object\n *\n * @example\n * // Format the given duration as ISO 8601 string\n * const result = formatISODuration({\n * years: 39,\n * months: 2,\n * days: 20,\n * hours: 7,\n * minutes: 5,\n * seconds: 0\n * })\n * //=> 'P39Y2M20DT0H0M0S'\n */\nfunction formatISODuration(duration) {\n (0, _index.default)(1, arguments);\n if ((0, _typeof2.default)(duration) !== 'object') throw new Error('Duration must be an object');\n var _duration$years = duration.years,\n years = _duration$years === void 0 ? 0 : _duration$years,\n _duration$months = duration.months,\n months = _duration$months === void 0 ? 0 : _duration$months,\n _duration$days = duration.days,\n days = _duration$days === void 0 ? 0 : _duration$days,\n _duration$hours = duration.hours,\n hours = _duration$hours === void 0 ? 0 : _duration$hours,\n _duration$minutes = duration.minutes,\n minutes = _duration$minutes === void 0 ? 0 : _duration$minutes,\n _duration$seconds = duration.seconds,\n seconds = _duration$seconds === void 0 ? 0 : _duration$seconds;\n return \"P\".concat(years, \"Y\").concat(months, \"M\").concat(days, \"DT\").concat(hours, \"H\").concat(minutes, \"M\").concat(seconds, \"S\");\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatRFC3339;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isValid/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/addLeadingZeros/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name formatRFC3339\n * @category Common Helpers\n * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6).\n *\n * @description\n * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {0|1|2|3} [options.fractionDigits=0] - number of digits after the decimal point after seconds\n * @returns {String} the formatted date string\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.fractionDigits` must be between 0 and 3\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format:\n * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format, 2 digits of second fraction:\n * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 2 })\n * //=> '2019-09-18T19:00:52.23Z'\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction\n * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 3 })\n * //=> '2019-09-18T19:00:52.234Z'\n */\nfunction formatRFC3339(dirtyDate, options) {\n var _options$fractionDigi;\n if (arguments.length < 1) {\n throw new TypeError(\"1 arguments required, but only \".concat(arguments.length, \" present\"));\n }\n var originalDate = (0, _index.default)(dirtyDate);\n if (!(0, _index2.default)(originalDate)) {\n throw new RangeError('Invalid time value');\n }\n var fractionDigits = Number((_options$fractionDigi = options === null || options === void 0 ? void 0 : options.fractionDigits) !== null && _options$fractionDigi !== void 0 ? _options$fractionDigi : 0);\n\n // Test if fractionDigits is between 0 and 3 _and_ is not NaN\n if (!(fractionDigits >= 0 && fractionDigits <= 3)) {\n throw new RangeError('fractionDigits must be between 0 and 3 inclusively');\n }\n var day = (0, _index3.default)(originalDate.getDate(), 2);\n var month = (0, _index3.default)(originalDate.getMonth() + 1, 2);\n var year = originalDate.getFullYear();\n var hour = (0, _index3.default)(originalDate.getHours(), 2);\n var minute = (0, _index3.default)(originalDate.getMinutes(), 2);\n var second = (0, _index3.default)(originalDate.getSeconds(), 2);\n var fractionalSecond = '';\n if (fractionDigits > 0) {\n var milliseconds = originalDate.getMilliseconds();\n var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, fractionDigits - 3));\n fractionalSecond = '.' + (0, _index3.default)(fractionalSeconds, fractionDigits);\n }\n var offset = '';\n var tzOffset = originalDate.getTimezoneOffset();\n if (tzOffset !== 0) {\n var absoluteOffset = Math.abs(tzOffset);\n var hourOffset = (0, _index3.default)((0, _index4.default)(absoluteOffset / 60), 2);\n var minuteOffset = (0, _index3.default)(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n var sign = tzOffset < 0 ? '+' : '-';\n offset = \"\".concat(sign).concat(hourOffset, \":\").concat(minuteOffset);\n } else {\n offset = 'Z';\n }\n return \"\".concat(year, \"-\").concat(month, \"-\").concat(day, \"T\").concat(hour, \":\").concat(minute, \":\").concat(second).concat(fractionalSecond).concat(offset);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatRFC7231;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isValid/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/addLeadingZeros/index.js\"));\nvar days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n\n/**\n * @name formatRFC7231\n * @category Common Helpers\n * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1).\n *\n * @description\n * Return the formatted date string in RFC 7231 format.\n * The result will always be in UTC timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {String} the formatted date string\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in RFC 7231 format:\n * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52))\n * //=> 'Wed, 18 Sep 2019 19:00:52 GMT'\n */\nfunction formatRFC7231(dirtyDate) {\n if (arguments.length < 1) {\n throw new TypeError(\"1 arguments required, but only \".concat(arguments.length, \" present\"));\n }\n var originalDate = (0, _index.default)(dirtyDate);\n if (!(0, _index2.default)(originalDate)) {\n throw new RangeError('Invalid time value');\n }\n var dayName = days[originalDate.getUTCDay()];\n var dayOfMonth = (0, _index3.default)(originalDate.getUTCDate(), 2);\n var monthName = months[originalDate.getUTCMonth()];\n var year = originalDate.getUTCFullYear();\n var hour = (0, _index3.default)(originalDate.getUTCHours(), 2);\n var minute = (0, _index3.default)(originalDate.getUTCMinutes(), 2);\n var second = (0, _index3.default)(originalDate.getUTCSeconds(), 2);\n\n // Result variables.\n return \"\".concat(dayName, \", \").concat(dayOfMonth, \" \").concat(monthName, \" \").concat(year, \" \").concat(hour, \":\").concat(minute, \":\").concat(second, \" GMT\");\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatRelative;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../format/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/defaultLocale/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../subMilliseconds/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"../_lib/getTimezoneOffsetInMilliseconds/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index9 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name formatRelative\n * @category Common Helpers\n * @summary Represent the date in words relative to the given base date.\n *\n * @description\n * Represent the date in words relative to the given base date.\n *\n * | Distance to the base date | Result |\n * |---------------------------|---------------------------|\n * | Previous 6 days | last Sunday at 04:30 AM |\n * | Last day | yesterday at 04:30 AM |\n * | Same day | today at 04:30 AM |\n * | Next day | tomorrow at 04:30 AM |\n * | Next 6 days | Sunday at 04:30 AM |\n * | Other | 12/31/2017 |\n *\n * @param {Date|Number} date - the date to format\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {String} the date in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.locale` must contain `formatRelative` property\n *\n * @example\n * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday\n * const result = formatRelative(addDays(new Date(), -6), new Date())\n * //=> \"last Thursday at 12:45 AM\"\n */\nfunction formatRelative(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale, _ref2, _ref3, _ref4, _options$weekStartsOn, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2;\n (0, _index8.default)(2, arguments);\n var date = (0, _index6.default)(dirtyDate);\n var baseDate = (0, _index6.default)(dirtyBaseDate);\n var defaultOptions = (0, _index.getDefaultOptions)();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index4.default;\n var weekStartsOn = (0, _index9.default)((_ref2 = (_ref3 = (_ref4 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.weekStartsOn) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : 0);\n if (!locale.localize) {\n throw new RangeError('locale must contain localize property');\n }\n if (!locale.formatLong) {\n throw new RangeError('locale must contain formatLong property');\n }\n if (!locale.formatRelative) {\n throw new RangeError('locale must contain formatRelative property');\n }\n var diff = (0, _index2.default)(date, baseDate);\n if (isNaN(diff)) {\n throw new RangeError('Invalid time value');\n }\n var token;\n if (diff < -6) {\n token = 'other';\n } else if (diff < -1) {\n token = 'lastWeek';\n } else if (diff < 0) {\n token = 'yesterday';\n } else if (diff < 1) {\n token = 'today';\n } else if (diff < 2) {\n token = 'tomorrow';\n } else if (diff < 7) {\n token = 'nextWeek';\n } else {\n token = 'other';\n }\n var utcDate = (0, _index5.default)(date, (0, _index7.default)(date));\n var utcBaseDate = (0, _index5.default)(baseDate, (0, _index7.default)(baseDate));\n var formatStr = locale.formatRelative(token, utcDate, utcBaseDate, {\n locale: locale,\n weekStartsOn: weekStartsOn\n });\n return (0, _index3.default)(date, formatStr, {\n locale: locale,\n weekStartsOn: weekStartsOn\n });\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = fromUnixTime;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name fromUnixTime\n * @category Timestamp Helpers\n * @summary Create a date from a Unix timestamp.\n *\n * @description\n * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded.\n *\n * @param {Number} unixTime - the given Unix timestamp (in seconds)\n * @returns {Date} the date\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Create the date 29 February 2012 11:45:05:\n * const result = fromUnixTime(1330515905)\n * //=> Wed Feb 29 2012 11:45:05\n */\nfunction fromUnixTime(dirtyUnixTime) {\n (0, _index3.default)(1, arguments);\n var unixTime = (0, _index2.default)(dirtyUnixTime);\n return (0, _index.default)(unixTime * 1000);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getDayOfYear;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfYear/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the day of year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nfunction getDayOfYear(dirtyDate) {\n (0, _index4.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var diff = (0, _index3.default)(date, (0, _index2.default)(date));\n var dayOfYear = diff + 1;\n return dayOfYear;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLeapYear;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isLeapYear\n * @category Year Helpers\n * @summary Is the given date in the leap year?\n *\n * @description\n * Is the given date in the leap year?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in the leap year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 1 September 2012 in the leap year?\n * const result = isLeapYear(new Date(2012, 8, 1))\n * //=> true\n */\nfunction isLeapYear(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var year = date.getFullYear();\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getDaysInYear;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isLeapYear/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getDaysInYear\n * @category Year Helpers\n * @summary Get the number of days in a year of the given date.\n *\n * @description\n * Get the number of days in a year of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the number of days in a year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // How many days are in 2012?\n * const result = getDaysInYear(new Date(2012, 0, 1))\n * //=> 366\n */\nfunction getDaysInYear(dirtyDate) {\n (0, _index3.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n if (String(new Date(date)) === 'Invalid Date') {\n return NaN;\n }\n return (0, _index2.default)(date) ? 366 : 365;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getDecade;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getDecade\n * @category Decade Helpers\n * @summary Get the decade of the given date.\n *\n * @description\n * Get the decade of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the year of decade\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which decade belongs 27 November 1942?\n * const result = getDecade(new Date(1942, 10, 27))\n * //=> 1940\n */\nfunction getDecade(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var year = date.getFullYear();\n var decade = Math.floor(year / 10) * 10;\n return decade;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getDefaultOptions;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../_lib/assign/index.js\"));\n/**\n * @name getDefaultOptions\n * @category Common Helpers\n * @summary Get default options.\n * @pure false\n *\n * @description\n * Returns an object that contains defaults for\n * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`\n * arguments for all functions.\n *\n * You can change these with [setDefaultOptions]{@link https://date-fns.org/docs/setDefaultOptions}.\n *\n * @returns {Object} default options\n *\n * @example\n * const result = getDefaultOptions()\n * //=> {}\n *\n * @example\n * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 })\n * const result = getDefaultOptions()\n * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 }\n */\nfunction getDefaultOptions() {\n return (0, _index2.default)({}, (0, _index.getDefaultOptions)());\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getISODay;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getISODay\n * @category Weekday Helpers\n * @summary Get the day of the ISO week of the given date.\n *\n * @description\n * Get the day of the ISO week of the given date,\n * which is 7 for Sunday, 1 for Monday etc.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the day of ISO week\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which day of the ISO week is 26 February 2012?\n * const result = getISODay(new Date(2012, 1, 26))\n * //=> 7\n */\nfunction getISODay(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var day = date.getDay();\n if (day === 0) {\n day = 7;\n }\n return day;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getISOWeeksInYear;\nvar _index = _interopRequireDefault(require(\"../startOfISOWeekYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../addWeeks/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MILLISECONDS_IN_WEEK = 604800000;\n\n/**\n * @name getISOWeeksInYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the number of weeks in an ISO week-numbering year of the given date.\n *\n * @description\n * Get the number of weeks in an ISO week-numbering year of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the number of ISO weeks in a year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // How many weeks are in ISO week-numbering year 2015?\n * const result = getISOWeeksInYear(new Date(2015, 1, 11))\n * //=> 53\n */\nfunction getISOWeeksInYear(dirtyDate) {\n (0, _index3.default)(1, arguments);\n var thisYear = (0, _index.default)(dirtyDate);\n var nextYear = (0, _index.default)((0, _index2.default)(thisYear, 60));\n var diff = nextYear.valueOf() - thisYear.valueOf();\n // Round the number of weeks to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getMilliseconds;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getMilliseconds\n * @category Millisecond Helpers\n * @summary Get the milliseconds of the given date.\n *\n * @description\n * Get the milliseconds of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the milliseconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Get the milliseconds of 29 February 2012 11:45:05.123:\n * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123))\n * //=> 123\n */\nfunction getMilliseconds(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var milliseconds = date.getMilliseconds();\n return milliseconds;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getOverlappingDaysInIntervals;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000;\n\n/**\n * @name getOverlappingDaysInIntervals\n * @category Interval Helpers\n * @summary Get the number of days that overlap in two time intervals\n *\n * @description\n * Get the number of days that overlap in two time intervals\n *\n * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/Interval}\n * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/Interval}\n * @returns {Number} the number of days that overlap in two time intervals\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // For overlapping time intervals adds 1 for each started overlapping day:\n * getOverlappingDaysInIntervals(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }\n * )\n * //=> 3\n *\n * @example\n * // For non-overlapping time intervals returns 0:\n * getOverlappingDaysInIntervals(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },\n * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) }\n * )\n * //=> 0\n */\n\nfunction getOverlappingDaysInIntervals(dirtyIntervalLeft, dirtyIntervalRight) {\n (0, _index2.default)(2, arguments);\n var intervalLeft = dirtyIntervalLeft || {};\n var intervalRight = dirtyIntervalRight || {};\n var leftStartTime = (0, _index.default)(intervalLeft.start).getTime();\n var leftEndTime = (0, _index.default)(intervalLeft.end).getTime();\n var rightStartTime = (0, _index.default)(intervalRight.start).getTime();\n var rightEndTime = (0, _index.default)(intervalRight.end).getTime();\n\n // Throw an exception if start date is after end date or if any date is `Invalid Date`\n if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) {\n throw new RangeError('Invalid interval');\n }\n var isOverlapping = leftStartTime < rightEndTime && rightStartTime < leftEndTime;\n if (!isOverlapping) {\n return 0;\n }\n var overlapStartDate = rightStartTime < leftStartTime ? leftStartTime : rightStartTime;\n var overlapEndDate = rightEndTime > leftEndTime ? leftEndTime : rightEndTime;\n var differenceInMs = overlapEndDate - overlapStartDate;\n return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getUnixTime;\nvar _index = _interopRequireDefault(require(\"../getTime/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getUnixTime\n * @category Timestamp Helpers\n * @summary Get the seconds timestamp of the given date.\n *\n * @description\n * Get the seconds timestamp of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the timestamp\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Get the timestamp of 29 February 2012 11:45:05 CET:\n * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))\n * //=> 1330512305\n */\nfunction getUnixTime(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return Math.floor((0, _index.default)(dirtyDate) / 1000);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getWeekYear;\nvar _index = _interopRequireDefault(require(\"../startOfWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index5 = require(\"../_lib/defaultOptions/index.js\");\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Number} the local week-numbering year\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nfunction getWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n (0, _index4.default)(1, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var year = date.getFullYear();\n var defaultOptions = (0, _index5.getDefaultOptions)();\n var firstWeekContainsDate = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n\n // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n var firstWeekOfNextYear = new Date(0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n var startOfNextYear = (0, _index.default)(firstWeekOfNextYear, options);\n var firstWeekOfThisYear = new Date(0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n var startOfThisYear = (0, _index.default)(firstWeekOfThisYear, options);\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}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfWeekYear;\nvar _index = _interopRequireDefault(require(\"../getWeekYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfWeek/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index5 = require(\"../_lib/defaultOptions/index.js\");\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Date} the start of a week-numbering year\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nfunction startOfWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n (0, _index4.default)(1, arguments);\n var defaultOptions = (0, _index5.getDefaultOptions)();\n var firstWeekContainsDate = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n var year = (0, _index.default)(dirtyDate, options);\n var firstWeek = new Date(0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n var date = (0, _index2.default)(firstWeek, options);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getWeek;\nvar _index = _interopRequireDefault(require(\"../startOfWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfWeekYear/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar MILLISECONDS_IN_WEEK = 604800000;\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Number} the week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\n\nfunction getWeek(dirtyDate, options) {\n (0, _index4.default)(1, arguments);\n var date = (0, _index3.default)(dirtyDate);\n var diff = (0, _index.default)(date, options).getTime() - (0, _index2.default)(date, options).getTime();\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getWeekOfMonth;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../getDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../getDay/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../startOfMonth/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name getWeekOfMonth\n * @category Week Helpers\n * @summary Get the week of the month of the given date.\n *\n * @description\n * Get the week of the month of the given date.\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Number} the week of month\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 inclusively\n *\n * @example\n * // Which week of the month is 9 November 2017?\n * const result = getWeekOfMonth(new Date(2017, 10, 9))\n * //=> 2\n */\nfunction getWeekOfMonth(date, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n (0, _index5.default)(1, arguments);\n var defaultOptions = (0, _index.getDefaultOptions)();\n var weekStartsOn = (0, _index6.default)((_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 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n var currentDayOfMonth = (0, _index2.default)(date);\n if (isNaN(currentDayOfMonth)) return NaN;\n var startWeekDay = (0, _index3.default)((0, _index4.default)(date));\n var lastDayOfFirstWeek = weekStartsOn - startWeekDay;\n if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7;\n var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek;\n return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfMonth;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name lastDayOfMonth\n * @category Month Helpers\n * @summary Return the last day of a month for the given date.\n *\n * @description\n * Return the last day of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The last day of a month for 2 September 2014 11:55:00:\n * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 00:00:00\n */\nfunction lastDayOfMonth(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getWeeksInMonth;\nvar _index = _interopRequireDefault(require(\"../differenceInCalendarWeeks/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../lastDayOfMonth/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../startOfMonth/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name getWeeksInMonth\n * @category Week Helpers\n * @summary Get the number of calendar weeks a month spans.\n *\n * @description\n * Get the number of calendar weeks the month in the given date spans.\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Number} the number of calendar weeks\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // How many calendar weeks does February 2015 span?\n * const result = getWeeksInMonth(new Date(2015, 1, 8))\n * //=> 4\n *\n * @example\n * // If the week starts on Monday,\n * // how many calendar weeks does July 2017 span?\n * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })\n * //=> 6\n */\nfunction getWeeksInMonth(date, options) {\n (0, _index4.default)(1, arguments);\n return (0, _index.default)((0, _index2.default)(date), (0, _index3.default)(date), options) + 1;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = hoursToMilliseconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name hoursToMilliseconds\n * @category Conversion Helpers\n * @summary Convert hours to milliseconds.\n *\n * @description\n * Convert a number of hours to a full number of milliseconds.\n *\n * @param {number} hours - number of hours to be converted\n *\n * @returns {number} the number of hours converted to milliseconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 hours to milliseconds:\n * const result = hoursToMilliseconds(2)\n * //=> 7200000\n */\nfunction hoursToMilliseconds(hours) {\n (0, _index.default)(1, arguments);\n return Math.floor(hours * _index2.millisecondsInHour);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = hoursToMinutes;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name hoursToMinutes\n * @category Conversion Helpers\n * @summary Convert hours to minutes.\n *\n * @description\n * Convert a number of hours to a full number of minutes.\n *\n * @param {number} hours - number of hours to be converted\n *\n * @returns {number} the number of hours converted in minutes\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 hours to minutes:\n * const result = hoursToMinutes(2)\n * //=> 120\n */\nfunction hoursToMinutes(hours) {\n (0, _index.default)(1, arguments);\n return Math.floor(hours * _index2.minutesInHour);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = hoursToSeconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name hoursToSeconds\n * @category Conversion Helpers\n * @summary Convert hours to seconds.\n *\n * @description\n * Convert a number of hours to a full number of seconds.\n *\n * @param {number} hours - number of hours to be converted\n *\n * @returns {number} the number of hours converted in seconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 hours to seconds:\n * const result = hoursToSeconds(2)\n * //=> 7200\n */\nfunction hoursToSeconds(hours) {\n (0, _index.default)(1, arguments);\n return Math.floor(hours * _index2.secondsInHour);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = intervalToDuration;\nvar _index = _interopRequireDefault(require(\"../compareAsc/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../add/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../differenceInDays/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../differenceInHours/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../differenceInMinutes/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../differenceInMonths/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"../differenceInSeconds/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"../differenceInYears/index.js\"));\nvar _index9 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index10 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name intervalToDuration\n * @category Common Helpers\n * @summary Convert interval to duration\n *\n * @description\n * Convert a interval object to a duration object.\n *\n * @param {Interval} interval - the interval to convert to duration\n *\n * @returns {Duration} The duration Object\n * @throws {TypeError} Requires 2 arguments\n * @throws {RangeError} `start` must not be Invalid Date\n * @throws {RangeError} `end` must not be Invalid Date\n *\n * @example\n * // Get the duration between January 15, 1929 and April 4, 1968.\n * intervalToDuration({\n * start: new Date(1929, 0, 15, 12, 0, 0),\n * end: new Date(1968, 3, 4, 19, 5, 0)\n * })\n * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 }\n */\nfunction intervalToDuration(interval) {\n (0, _index10.default)(1, arguments);\n var start = (0, _index9.default)(interval.start);\n var end = (0, _index9.default)(interval.end);\n if (isNaN(start.getTime())) throw new RangeError('Start Date is invalid');\n if (isNaN(end.getTime())) throw new RangeError('End Date is invalid');\n var duration = {};\n duration.years = Math.abs((0, _index8.default)(end, start));\n var sign = (0, _index.default)(end, start);\n var remainingMonths = (0, _index2.default)(start, {\n years: sign * duration.years\n });\n duration.months = Math.abs((0, _index6.default)(end, remainingMonths));\n var remainingDays = (0, _index2.default)(remainingMonths, {\n months: sign * duration.months\n });\n duration.days = Math.abs((0, _index3.default)(end, remainingDays));\n var remainingHours = (0, _index2.default)(remainingDays, {\n days: sign * duration.days\n });\n duration.hours = Math.abs((0, _index4.default)(end, remainingHours));\n var remainingMinutes = (0, _index2.default)(remainingHours, {\n hours: sign * duration.hours\n });\n duration.minutes = Math.abs((0, _index5.default)(end, remainingMinutes));\n var remainingSeconds = (0, _index2.default)(remainingMinutes, {\n minutes: sign * duration.minutes\n });\n duration.seconds = Math.abs((0, _index7.default)(end, remainingSeconds));\n return duration;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = intlFormat;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name intlFormat\n * @category Common Helpers\n * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).\n *\n * @description\n * Return the formatted date string in the given format.\n * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside.\n * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options)\n *\n * > \u26A0\uFE0F Please note that before Node version 13.0.0, only the locale data for en-US is available by default.\n *\n * @param {Date|Number} argument - the original date.\n * @param {Object} [formatOptions] - an object with options.\n * @param {'lookup'|'best fit'} [formatOptions.localeMatcher='best fit'] - locale selection algorithm.\n * @param {'narrow'|'short'|'long'} [formatOptions.weekday] - representation the days of the week.\n * @param {'narrow'|'short'|'long'} [formatOptions.era] - representation of eras.\n * @param {'numeric'|'2-digit'} [formatOptions.year] - representation of years.\n * @param {'numeric'|'2-digit'|'narrow'|'short'|'long'} [formatOptions.month='numeric'] - representation of month.\n * @param {'numeric'|'2-digit'} [formatOptions.day='numeric'] - representation of day.\n * @param {'numeric'|'2-digit'} [formatOptions.hour='numeric'] - representation of hours.\n * @param {'numeric'|'2-digit'} [formatOptions.minute] - representation of minutes.\n * @param {'numeric'|'2-digit'} [formatOptions.second] - representation of seconds.\n * @param {'short'|'long'} [formatOptions.timeZoneName] - representation of names of time zones.\n * @param {'basic'|'best fit'} [formatOptions.formatMatcher='best fit'] - format selection algorithm.\n * @param {Boolean} [formatOptions.hour12] - determines whether to use 12-hour time format.\n * @param {String} [formatOptions.timeZone] - the time zone to use.\n * @param {Object} [localeOptions] - an object with locale.\n * @param {String|String[]} [localeOptions.locale] - the locale code\n * @returns {String} the formatted date string.\n * @throws {TypeError} 1 argument required.\n * @throws {RangeError} `date` must not be Invalid Date\n *\n * @example\n * // Represent 10 October 2019 in German.\n * // Convert the date with format's options and locale's options.\n * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), {\n * weekday: 'long',\n * year: 'numeric',\n * month: 'long',\n * day: 'numeric',\n * }, {\n * locale: 'de-DE',\n * })\n * //=> Freitag, 4. Oktober 2019\n *\n * @example\n * // Represent 10 October 2019.\n * // Convert the date with format's options.\n * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), {\n * year: 'numeric',\n * month: 'numeric',\n * day: 'numeric',\n * hour: 'numeric',\n * })\n * //=> 10/4/2019, 12 PM\n *\n * @example\n * // Represent 10 October 2019 in Korean.\n * // Convert the date with locale's options.\n * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), {\n * locale: 'ko-KR',\n * })\n * //=> 2019. 10. 4.\n *\n * @example\n * // Represent 10 October 2019 in middle-endian format:\n * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456))\n * //=> 10/4/2019\n */\nfunction intlFormat(date, formatOrLocale, localeOptions) {\n var _localeOptions;\n (0, _index.default)(1, arguments);\n var formatOptions;\n if (isFormatOptions(formatOrLocale)) {\n formatOptions = formatOrLocale;\n } else {\n localeOptions = formatOrLocale;\n }\n return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(date);\n}\nfunction isFormatOptions(opts) {\n return opts !== undefined && !('locale' in opts);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = intlFormatDistance;\nvar _index = require(\"../constants/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../differenceInCalendarMonths/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../differenceInCalendarQuarters/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../differenceInCalendarWeeks/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../differenceInCalendarYears/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"../differenceInHours/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"../differenceInMinutes/index.js\"));\nvar _index9 = _interopRequireDefault(require(\"../differenceInSeconds/index.js\"));\nvar _index10 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index11 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name intlFormatDistance\n * @category Common Helpers\n * @summary Formats distance between two dates in a human-readable format\n * @description\n * The function calculates the difference between two dates and formats it as a human-readable string.\n *\n * The function will pick the most appropriate unit depending on the distance between dates. For example, if the distance is a few hours, it might return `x hours`. If the distance is a few months, it might return `x months`.\n *\n * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`.\n *\n * See the table below for the unit picking logic:\n *\n * | Distance between dates | Result (past) | Result (future) |\n * | ---------------------- | -------------- | --------------- |\n * | 0 seconds | now | now |\n * | 1-59 seconds | X seconds ago | in X seconds |\n * | 1-59 minutes | X minutes ago | in X minutes |\n * | 1-23 hours | X hours ago | in X hours |\n * | 1 day | yesterday | tomorrow |\n * | 2-6 days | X days ago | in X days |\n * | 7 days | last week | next week |\n * | 8 days-1 month | X weeks ago | in X weeks |\n * | 1 month | last month | next month |\n * | 2-3 months | X months ago | in X months |\n * | 1 quarter | last quarter | next quarter |\n * | 2-3 quarters | X quarters ago | in X quarters |\n * | 1 year | last year | next year |\n * | 2+ years | X years ago | in X years |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with.\n * @param {Object} [options] - an object with options.\n * @param {String} [options.unit] - formats the distance with the given unit ('year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second').\n * @param {String|String[]} [options.locale] - the locale to use.\n * @param {String} [options.localeMatcher='best fit'] - the locale matching algorithm to use. Other value: 'lookup'.\n * See MDN for details [Locale identification and negotiation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * @param {String} [options.numeric='auto'] - the output message format. The values are 'auto' (e.g. `yesterday`), 'always'(e.g. `1 day ago`).\n * @param {String} [options.style='long'] - the length of the result. The values are: 'long' (e.g. `1 month`), 'short' (e.g. 'in 1 mo.'), 'narrow' (e.g. 'in 1 mo.').\n * The narrow one could be similar to the short one for some locales.\n * @returns {String} the distance in words according to language-sensitive relative time formatting.\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.unit` must not be invalid Unit\n * @throws {RangeError} `options.locale` must not be invalid locale\n * @throws {RangeError} `options.localeMatcher` must not be invalid localeMatcher\n * @throws {RangeError} `options.numeric` must not be invalid numeric\n * @throws {RangeError} `options.style` must not be invalid style\n *\n * @example\n * // What is the distance between the dates when the fist date is after the second?\n * intlFormatDistance(\n * new Date(1986, 3, 4, 11, 30, 0),\n * new Date(1986, 3, 4, 10, 30, 0)\n * )\n * //=> 'in 1 hour'\n *\n * // What is the distance between the dates when the fist date is before the second?\n * intlFormatDistance(\n * new Date(1986, 3, 4, 10, 30, 0),\n * new Date(1986, 3, 4, 11, 30, 0)\n * )\n * //=> '1 hour ago'\n *\n * @example\n * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return \"next year\"\n * intlFormatDistance(\n * new Date(1987, 6, 4, 10, 30, 0),\n * new Date(1986, 3, 4, 10, 30, 0),\n * { unit: 'quarter' }\n * )\n * //=> 'in 5 quarters'\n *\n * @example\n * // Use the locale option to get the result in Spanish. Without setting it, the example would return \"in 1 hour\".\n * intlFormatDistance(\n * new Date(1986, 3, 4, 11, 30, 0),\n * new Date(1986, 3, 4, 10, 30, 0),\n * { locale: 'es' }\n * )\n * //=> 'dentro de 1 hora'\n *\n * @example\n * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return \"tomorrow\".\n * intlFormatDistance(\n * new Date(1986, 3, 5, 11, 30, 0),\n * new Date(1986, 3, 4, 11, 30, 0),\n * { numeric: 'always' }\n * )\n * //=> 'in 1 day'\n *\n * @example\n * // Use the style option to force the function to use short values. Without setting it, the example would return \"in 2 years\".\n * intlFormatDistance(\n * new Date(1988, 3, 4, 11, 30, 0),\n * new Date(1986, 3, 4, 11, 30, 0),\n * { style: 'short' }\n * )\n * //=> 'in 2 yr'\n */\nfunction intlFormatDistance(date, baseDate, options) {\n (0, _index11.default)(2, arguments);\n var value = 0;\n var unit;\n var dateLeft = (0, _index10.default)(date);\n var dateRight = (0, _index10.default)(baseDate);\n if (!(options !== null && options !== void 0 && options.unit)) {\n // Get the unit based on diffInSeconds calculations if no unit is specified\n var diffInSeconds = (0, _index9.default)(dateLeft, dateRight); // The smallest unit\n\n if (Math.abs(diffInSeconds) < _index.secondsInMinute) {\n value = (0, _index9.default)(dateLeft, dateRight);\n unit = 'second';\n } else if (Math.abs(diffInSeconds) < _index.secondsInHour) {\n value = (0, _index8.default)(dateLeft, dateRight);\n unit = 'minute';\n } else if (Math.abs(diffInSeconds) < _index.secondsInDay && Math.abs((0, _index2.default)(dateLeft, dateRight)) < 1) {\n value = (0, _index7.default)(dateLeft, dateRight);\n unit = 'hour';\n } else if (Math.abs(diffInSeconds) < _index.secondsInWeek && (value = (0, _index2.default)(dateLeft, dateRight)) && Math.abs(value) < 7) {\n unit = 'day';\n } else if (Math.abs(diffInSeconds) < _index.secondsInMonth) {\n value = (0, _index5.default)(dateLeft, dateRight);\n unit = 'week';\n } else if (Math.abs(diffInSeconds) < _index.secondsInQuarter) {\n value = (0, _index3.default)(dateLeft, dateRight);\n unit = 'month';\n } else if (Math.abs(diffInSeconds) < _index.secondsInYear) {\n if ((0, _index4.default)(dateLeft, dateRight) < 4) {\n // To filter out cases that are less than a year but match 4 quarters\n value = (0, _index4.default)(dateLeft, dateRight);\n unit = 'quarter';\n } else {\n value = (0, _index6.default)(dateLeft, dateRight);\n unit = 'year';\n }\n } else {\n value = (0, _index6.default)(dateLeft, dateRight);\n unit = 'year';\n }\n } else {\n // Get the value if unit is specified\n unit = options === null || options === void 0 ? void 0 : options.unit;\n if (unit === 'second') {\n value = (0, _index9.default)(dateLeft, dateRight);\n } else if (unit === 'minute') {\n value = (0, _index8.default)(dateLeft, dateRight);\n } else if (unit === 'hour') {\n value = (0, _index7.default)(dateLeft, dateRight);\n } else if (unit === 'day') {\n value = (0, _index2.default)(dateLeft, dateRight);\n } else if (unit === 'week') {\n value = (0, _index5.default)(dateLeft, dateRight);\n } else if (unit === 'month') {\n value = (0, _index3.default)(dateLeft, dateRight);\n } else if (unit === 'quarter') {\n value = (0, _index4.default)(dateLeft, dateRight);\n } else if (unit === 'year') {\n value = (0, _index6.default)(dateLeft, dateRight);\n }\n }\n var rtf = new Intl.RelativeTimeFormat(options === null || options === void 0 ? void 0 : options.locale, {\n localeMatcher: options === null || options === void 0 ? void 0 : options.localeMatcher,\n numeric: (options === null || options === void 0 ? void 0 : options.numeric) || 'auto',\n style: options === null || options === void 0 ? void 0 : options.style\n });\n return rtf.format(value, unit);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isExists;\n/**\n * @name isExists\n * @category Common Helpers\n * @summary Is the given date exists?\n *\n * @description\n * Checks if the given arguments convert to an existing date.\n *\n * @param {Number} year of the date to check\n * @param {Number} month of the date to check\n * @param {Number} day of the date to check\n * @returns {Boolean} the date exists\n * @throws {TypeError} 3 arguments required\n *\n * @example\n * // For the valid date:\n * const result = isExists(2018, 0, 31)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isExists(2018, 1, 31)\n * //=> false\n */\nfunction isExists(year, month, day) {\n if (arguments.length < 3) {\n throw new TypeError('3 argument required, but only ' + arguments.length + ' present');\n }\n var date = new Date(year, month, day);\n return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFirstDayOfMonth;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isFirstDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the first day of a month?\n *\n * @description\n * Is the given date the first day of a month?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the first day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 1 September 2014 the first day of a month?\n * const result = isFirstDayOfMonth(new Date(2014, 8, 1))\n * //=> true\n */\nfunction isFirstDayOfMonth(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDate() === 1;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFriday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isFriday\n * @category Weekday Helpers\n * @summary Is the given date Friday?\n *\n * @description\n * Is the given date Friday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Friday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 26 September 2014 Friday?\n * const result = isFriday(new Date(2014, 8, 26))\n * //=> true\n */\nfunction isFriday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDay() === 5;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFuture;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isFuture\n * @category Common Helpers\n * @summary Is the given date in the future?\n * @pure false\n *\n * @description\n * Is the given date in the future?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in the future\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 31 December 2014 in the future?\n * const result = isFuture(new Date(2014, 11, 31))\n * //=> true\n */\nfunction isFuture(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getTime() > Date.now();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMatch;\nvar _index = _interopRequireDefault(require(\"../parse/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isValid/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isMatch\n * @category Common Helpers\n * @summary validates the date string against given formats\n *\n * @description\n * Return the true if given date is string correct against the given format else\n * will return false.\n *\n * > \u26A0\uFE0F Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * isMatch('23 AM', 'HH a')\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Su | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Su | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Su | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `isMatch` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `isMatch('50', 'yy') //=> true`\n *\n * `isMatch('75', 'yy') //=> true`\n *\n * while `uu` will use the year as is:\n *\n * `isMatch('50', 'uu') //=> true`\n *\n * `isMatch('75', 'uu') //=> true`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}\n * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be checked in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year),\n * the values will be taken from today's using `new Date()` date which works as a context of parsing.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n *\n *\n * @param {String} dateString - the date string to verify\n * @param {String} formatString - the string of tokens\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @returns {Boolean}\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} `options.locale` must contain `match` property\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Match 11 February 2014 from middle-endian format:\n * const result = isMatch('02/11/2014', 'MM/dd/yyyy')\n * //=> true\n *\n * @example\n * // Match 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * const result = isMatch('28-a de februaro', \"do 'de' MMMM\", {\n * locale: eo\n * })\n * //=> true\n */\nfunction isMatch(dateString, formatString, options) {\n (0, _index3.default)(2, arguments);\n return (0, _index2.default)((0, _index.default)(dateString, formatString, new Date(), options));\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMonday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isMonday\n * @category Weekday Helpers\n * @summary Is the given date Monday?\n *\n * @description\n * Is the given date Monday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Monday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 22 September 2014 Monday?\n * const result = isMonday(new Date(2014, 8, 22))\n * //=> true\n */\nfunction isMonday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date).getDay() === 1;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPast;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isPast\n * @category Common Helpers\n * @summary Is the given date in the past?\n * @pure false\n *\n * @description\n * Is the given date in the past?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in the past\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 2 July 2014 in the past?\n * const result = isPast(new Date(2014, 6, 2))\n * //=> true\n */\nfunction isPast(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getTime() < Date.now();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfHour;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name startOfHour\n * @category Hour Helpers\n * @summary Return the start of an hour for the given date.\n *\n * @description\n * Return the start of an hour for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of an hour\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of an hour for 2 September 2014 11:55:00:\n * const result = startOfHour(new Date(2014, 8, 2, 11, 55))\n * //=> Tue Sep 02 2014 11:00:00\n */\nfunction startOfHour(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n date.setMinutes(0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSameHour;\nvar _index = _interopRequireDefault(require(\"../startOfHour/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSameHour\n * @category Hour Helpers\n * @summary Are the given dates in the same hour (and same day)?\n *\n * @description\n * Are the given dates in the same hour (and same day)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same hour (and same day)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour?\n * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30))\n * //=> true\n *\n * @example\n * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour?\n * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0))\n * //=> false\n */\nfunction isSameHour(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n var dateLeftStartOfHour = (0, _index.default)(dirtyDateLeft);\n var dateRightStartOfHour = (0, _index.default)(dirtyDateRight);\n return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSameWeek;\nvar _index = _interopRequireDefault(require(\"../startOfWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSameWeek\n * @category Week Helpers\n * @summary Are the given dates in the same week (and month and year)?\n *\n * @description\n * Are the given dates in the same week (and month and year)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Boolean} the dates are in the same week (and month and year)\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // Are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))\n * //=> true\n *\n * @example\n * // If week starts with Monday,\n * // are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {\n * weekStartsOn: 1\n * })\n * //=> false\n *\n * @example\n * // Are 1 January 2014 and 1 January 2015 in the same week?\n * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))\n * //=> false\n */\nfunction isSameWeek(dirtyDateLeft, dirtyDateRight, options) {\n (0, _index2.default)(2, arguments);\n var dateLeftStartOfWeek = (0, _index.default)(dirtyDateLeft, options);\n var dateRightStartOfWeek = (0, _index.default)(dirtyDateRight, options);\n return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSameISOWeek;\nvar _index = _interopRequireDefault(require(\"../isSameWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSameISOWeek\n * @category ISO Week Helpers\n * @summary Are the given dates in the same ISO week (and year)?\n *\n * @description\n * Are the given dates in the same ISO week (and year)?\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same ISO week (and year)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 1 September 2014 and 7 September 2014 in the same ISO week?\n * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7))\n * //=> true\n *\n * @example\n * // Are 1 September 2014 and 1 September 2015 in the same ISO week?\n * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1))\n * //=> false\n */\nfunction isSameISOWeek(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n return (0, _index.default)(dirtyDateLeft, dirtyDateRight, {\n weekStartsOn: 1\n });\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSameISOWeekYear;\nvar _index = _interopRequireDefault(require(\"../startOfISOWeekYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSameISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Are the given dates in the same ISO week-numbering year?\n *\n * @description\n * Are the given dates in the same ISO week-numbering year?\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same ISO week-numbering year\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year?\n * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2))\n * //=> true\n */\nfunction isSameISOWeekYear(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n var dateLeftStartOfYear = (0, _index.default)(dirtyDateLeft);\n var dateRightStartOfYear = (0, _index.default)(dirtyDateRight);\n return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSameMinute;\nvar _index = _interopRequireDefault(require(\"../startOfMinute/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSameMinute\n * @category Minute Helpers\n * @summary Are the given dates in the same minute (and hour and day)?\n *\n * @description\n * Are the given dates in the same minute (and hour and day)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same minute (and hour and day)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute?\n * const result = isSameMinute(\n * new Date(2014, 8, 4, 6, 30),\n * new Date(2014, 8, 4, 6, 30, 15)\n * )\n * //=> true\n *\n * @example\n * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute?\n * const result = isSameMinute(\n * new Date(2014, 8, 4, 6, 30),\n * new Date(2014, 8, 5, 6, 30)\n * )\n * //=> false\n */\nfunction isSameMinute(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n var dateLeftStartOfMinute = (0, _index.default)(dirtyDateLeft);\n var dateRightStartOfMinute = (0, _index.default)(dirtyDateRight);\n return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfSecond;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name startOfSecond\n * @category Second Helpers\n * @summary Return the start of a second for the given date.\n *\n * @description\n * Return the start of a second for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a second\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a second for 1 December 2014 22:15:45.400:\n * const result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))\n * //=> Mon Dec 01 2014 22:15:45.000\n */\nfunction startOfSecond(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n date.setMilliseconds(0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSameSecond;\nvar _index = _interopRequireDefault(require(\"../startOfSecond/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isSameSecond\n * @category Second Helpers\n * @summary Are the given dates in the same second (and hour and day)?\n *\n * @description\n * Are the given dates in the same second (and hour and day)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same second (and hour and day)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second?\n * const result = isSameSecond(\n * new Date(2014, 8, 4, 6, 30, 15),\n * new Date(2014, 8, 4, 6, 30, 15, 500)\n * )\n * //=> true\n *\n * @example\n * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second?\n * const result = isSameSecond(\n * new Date(2014, 8, 4, 6, 0, 15),\n * new Date(2014, 8, 4, 6, 1, 15)\n * )\n * //=> false\n *\n * @example\n * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second?\n * const result = isSameSecond(\n * new Date(2014, 8, 4, 6, 0, 15),\n * new Date(2014, 8, 5, 6, 0, 15)\n * )\n * //=> false\n */\nfunction isSameSecond(dirtyDateLeft, dirtyDateRight) {\n (0, _index2.default)(2, arguments);\n var dateLeftStartOfSecond = (0, _index.default)(dirtyDateLeft);\n var dateRightStartOfSecond = (0, _index.default)(dirtyDateRight);\n return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime();\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisHour;\nvar _index = _interopRequireDefault(require(\"../isSameHour/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisHour\n * @category Hour Helpers\n * @summary Is the given date in the same hour as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same hour as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this hour\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If now is 25 September 2014 18:30:15.500,\n * // is 25 September 2014 18:00:00 in this hour?\n * const result = isThisHour(new Date(2014, 8, 25, 18))\n * //=> true\n */\nfunction isThisHour(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(Date.now(), dirtyDate);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisISOWeek;\nvar _index = _interopRequireDefault(require(\"../isSameISOWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisISOWeek\n * @category ISO Week Helpers\n * @summary Is the given date in the same ISO week as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same ISO week as the current date?\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this ISO week\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 25 September 2014, is 22 September 2014 in this ISO week?\n * const result = isThisISOWeek(new Date(2014, 8, 22))\n * //=> true\n */\n\nfunction isThisISOWeek(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, Date.now());\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisMinute;\nvar _index = _interopRequireDefault(require(\"../isSameMinute/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisMinute\n * @category Minute Helpers\n * @summary Is the given date in the same minute as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same minute as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this minute\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If now is 25 September 2014 18:30:15.500,\n * // is 25 September 2014 18:30:00 in this minute?\n * const result = isThisMinute(new Date(2014, 8, 25, 18, 30))\n * //=> true\n */\n\nfunction isThisMinute(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(Date.now(), dirtyDate);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisMonth;\nvar _index = _interopRequireDefault(require(\"../isSameMonth/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisMonth\n * @category Month Helpers\n * @summary Is the given date in the same month as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same month as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 25 September 2014, is 15 September 2014 in this month?\n * const result = isThisMonth(new Date(2014, 8, 15))\n * //=> true\n */\n\nfunction isThisMonth(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(Date.now(), dirtyDate);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisQuarter;\nvar _index = _interopRequireDefault(require(\"../isSameQuarter/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisQuarter\n * @category Quarter Helpers\n * @summary Is the given date in the same quarter as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same quarter as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this quarter\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 25 September 2014, is 2 July 2014 in this quarter?\n * const result = isThisQuarter(new Date(2014, 6, 2))\n * //=> true\n */\nfunction isThisQuarter(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(Date.now(), dirtyDate);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisSecond;\nvar _index = _interopRequireDefault(require(\"../isSameSecond/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisSecond\n * @category Second Helpers\n * @summary Is the given date in the same second as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same second as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this second\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If now is 25 September 2014 18:30:15.500,\n * // is 25 September 2014 18:30:15.000 in this second?\n * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15))\n * //=> true\n */\nfunction isThisSecond(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(Date.now(), dirtyDate);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisWeek;\nvar _index = _interopRequireDefault(require(\"../isSameWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisWeek\n * @category Week Helpers\n * @summary Is the given date in the same week as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same week as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @param {Object} [options] - the object with options\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Boolean} the date is in this week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // If today is 25 September 2014, is 21 September 2014 in this week?\n * const result = isThisWeek(new Date(2014, 8, 21))\n * //=> true\n *\n * @example\n * // If today is 25 September 2014 and week starts with Monday\n * // is 21 September 2014 in this week?\n * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 })\n * //=> false\n */\n\nfunction isThisWeek(dirtyDate, options) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, Date.now(), options);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThisYear;\nvar _index = _interopRequireDefault(require(\"../isSameYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThisYear\n * @category Year Helpers\n * @summary Is the given date in the same year as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same year as the current date?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is in this year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 25 September 2014, is 2 July 2014 in this year?\n * const result = isThisYear(new Date(2014, 6, 2))\n * //=> true\n */\nfunction isThisYear(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, Date.now());\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isThursday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isThursday\n * @category Weekday Helpers\n * @summary Is the given date Thursday?\n *\n * @description\n * Is the given date Thursday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Thursday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 25 September 2014 Thursday?\n * const result = isThursday(new Date(2014, 8, 25))\n * //=> true\n */\nfunction isThursday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDay() === 4;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isToday;\nvar _index = _interopRequireDefault(require(\"../isSameDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isToday\n * @category Day Helpers\n * @summary Is the given date today?\n * @pure false\n *\n * @description\n * Is the given date today?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is today\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 6 October 14:00:00 today?\n * const result = isToday(new Date(2014, 9, 6, 14, 0))\n * //=> true\n */\nfunction isToday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, Date.now());\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isTomorrow;\nvar _index = _interopRequireDefault(require(\"../addDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../isSameDay/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isTomorrow\n * @category Day Helpers\n * @summary Is the given date tomorrow?\n * @pure false\n *\n * @description\n * Is the given date tomorrow?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is tomorrow\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow?\n * const result = isTomorrow(new Date(2014, 9, 7, 14, 0))\n * //=> true\n */\nfunction isTomorrow(dirtyDate) {\n (0, _index3.default)(1, arguments);\n return (0, _index2.default)(dirtyDate, (0, _index.default)(Date.now(), 1));\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isTuesday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isTuesday\n * @category Weekday Helpers\n * @summary Is the given date Tuesday?\n *\n * @description\n * Is the given date Tuesday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Tuesday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 23 September 2014 Tuesday?\n * const result = isTuesday(new Date(2014, 8, 23))\n * //=> true\n */\nfunction isTuesday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDay() === 2;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isWednesday;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isWednesday\n * @category Weekday Helpers\n * @summary Is the given date Wednesday?\n *\n * @description\n * Is the given date Wednesday?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is Wednesday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 24 September 2014 Wednesday?\n * const result = isWednesday(new Date(2014, 8, 24))\n * //=> true\n */\nfunction isWednesday(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate).getDay() === 3;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isYesterday;\nvar _index = _interopRequireDefault(require(\"../isSameDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../subDays/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name isYesterday\n * @category Day Helpers\n * @summary Is the given date yesterday?\n * @pure false\n *\n * @description\n * Is the given date yesterday?\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is yesterday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 5 October 14:00:00 yesterday?\n * const result = isYesterday(new Date(2014, 9, 5, 14, 0))\n * //=> true\n */\nfunction isYesterday(dirtyDate) {\n (0, _index3.default)(1, arguments);\n return (0, _index.default)(dirtyDate, (0, _index2.default)(Date.now(), 1));\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfDecade;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name lastDayOfDecade\n * @category Decade Helpers\n * @summary Return the last day of a decade for the given date.\n *\n * @description\n * Return the last day of a decade for the given date.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the last day of a decade\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The last day of a decade for 21 December 2012 21:12:00:\n * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00))\n * //=> Wed Dec 31 2019 00:00:00\n */\nfunction lastDayOfDecade(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var year = date.getFullYear();\n var decade = 9 + Math.floor(year / 10) * 10;\n date.setFullYear(decade + 1, 0, 0);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfWeek;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index4 = require(\"../_lib/defaultOptions/index.js\");\n/**\n * @name lastDayOfWeek\n * @category Week Helpers\n * @summary Return the last day of a week for the given date.\n *\n * @description\n * Return the last day of a week for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date} the last day of a week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // The last day of a week for 2 September 2014 11:55:00:\n * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00:\n * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nfunction lastDayOfWeek(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n (0, _index3.default)(1, arguments);\n var defaultOptions = (0, _index4.getDefaultOptions)();\n var weekStartsOn = (0, _index2.default)((_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 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6');\n }\n var date = (0, _index.default)(dirtyDate);\n var day = date.getDay();\n var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n date.setHours(0, 0, 0, 0);\n date.setDate(date.getDate() + diff);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfISOWeek;\nvar _index = _interopRequireDefault(require(\"../lastDayOfWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name lastDayOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the last day of an ISO week for the given date.\n *\n * @description\n * Return the last day of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the last day of an ISO week\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The last day of an ISO week for 2 September 2014 11:55:00:\n * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Sep 07 2014 00:00:00\n */\nfunction lastDayOfISOWeek(dirtyDate) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(dirtyDate, {\n weekStartsOn: 1\n });\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfISOWeekYear;\nvar _index = _interopRequireDefault(require(\"../getISOWeekYear/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfISOWeek/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name lastDayOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the last day of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the last day of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of an ISO week-numbering year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The last day of an ISO week-numbering year for 2 July 2005:\n * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Sun Jan 01 2006 00:00:00\n */\nfunction lastDayOfISOWeekYear(dirtyDate) {\n (0, _index3.default)(1, arguments);\n var year = (0, _index.default)(dirtyDate);\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setFullYear(year + 1, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n var date = (0, _index2.default)(fourthOfJanuary);\n date.setDate(date.getDate() - 1);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfQuarter;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name lastDayOfQuarter\n * @category Quarter Helpers\n * @summary Return the last day of a year quarter for the given date.\n *\n * @description\n * Return the last day of a year quarter for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Date} the last day of a quarter\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // The last day of a quarter for 2 September 2014 11:55:00:\n * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 00:00:00\n */\nfunction lastDayOfQuarter(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var currentMonth = date.getMonth();\n var month = currentMonth - currentMonth % 3 + 3;\n date.setMonth(month, 0);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lastDayOfYear;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name lastDayOfYear\n * @category Year Helpers\n * @summary Return the last day of a year for the given date.\n *\n * @description\n * Return the last day of a year for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the last day of a year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The last day of a year for 2 September 2014 11:55:00:\n * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Dec 31 2014 00:00:00\n */\nfunction lastDayOfYear(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var year = date.getFullYear();\n date.setFullYear(year + 1, 0, 0);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = lightFormat;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/format/lightFormatters/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/getTimezoneOffsetInMilliseconds/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../isValid/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../subMilliseconds/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n// This RegExp consists of three parts separated by `|`:\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nvar formattingTokensRegExp = /(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name lightFormat\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. Unlike `format`,\n * `lightFormat` doesn't use locales and outputs date using the most popular tokens.\n *\n * > \u26A0\uFE0F Please note that the `lightFormat` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples |\n * |---------------------------------|---------|-----------------------------------|\n * | AM, PM | a..aaa | AM, PM |\n * | | aaaa | a.m., p.m. |\n * | | aaaaa | a, p |\n * | Calendar year | y | 44, 1, 1900, 2017 |\n * | | yy | 44, 01, 00, 17 |\n * | | yyy | 044, 001, 000, 017 |\n * | | yyyy | 0044, 0001, 1900, 2017 |\n * | Month (formatting) | M | 1, 2, ..., 12 |\n * | | MM | 01, 02, ..., 12 |\n * | Day of month | d | 1, 2, ..., 31 |\n * | | dd | 01, 02, ..., 31 |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 |\n * | | hh | 01, 02, ..., 11, 12 |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 |\n * | | HH | 00, 01, 02, ..., 23 |\n * | Minute | m | 0, 1, ..., 59 |\n * | | mm | 00, 01, ..., 59 |\n * | Second | s | 0, 1, ..., 59 |\n * | | ss | 00, 01, ..., 59 |\n * | Fraction of second | S | 0, 1, ..., 9 |\n * | | SS | 00, 01, ..., 99 |\n * | | SSS | 000, 001, ..., 999 |\n * | | SSSS | ... |\n *\n * @param {Date|Number} date - the original date\n * @param {String} format - the string of tokens\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd')\n * //=> '2014-02-11'\n */\n\nfunction lightFormat(dirtyDate, formatStr) {\n (0, _index6.default)(2, arguments);\n var originalDate = (0, _index.default)(dirtyDate);\n if (!(0, _index4.default)(originalDate)) {\n throw new RangeError('Invalid time value');\n }\n\n // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\n var timezoneOffset = (0, _index3.default)(originalDate);\n var utcDate = (0, _index5.default)(originalDate, timezoneOffset);\n var tokens = formatStr.match(formattingTokensRegExp);\n\n // The only case when formattingTokensRegExp doesn't match the string is when it's empty\n if (!tokens) return '';\n var result = tokens.map(function (substring) {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return \"'\";\n }\n var firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return cleanEscapedString(substring);\n }\n var formatter = _index2.default[firstCharacter];\n if (formatter) {\n return formatter(utcDate, substring);\n }\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n }\n return substring;\n }).join('');\n return result;\n}\nfunction cleanEscapedString(input) {\n var matches = input.match(escapedStringRegExp);\n if (!matches) {\n return input;\n }\n return matches[1].replace(doubleQuoteRegExp, \"'\");\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = milliseconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n// Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.\n// 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\nvar daysInYear = 365.2425;\n\n/**\n * @name milliseconds\n * @category Millisecond Helpers\n * @summary\n * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds.\n *\n * @description\n * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n *\n * One month is a year divided by 12.\n *\n * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {number} the milliseconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // 1 year in milliseconds\n * milliseconds({ years: 1 })\n * //=> 31556952000\n *\n * // 3 months in milliseconds\n * milliseconds({ months: 3 })\n * //=> 7889238000\n */\nfunction milliseconds(_ref) {\n var years = _ref.years,\n months = _ref.months,\n weeks = _ref.weeks,\n days = _ref.days,\n hours = _ref.hours,\n minutes = _ref.minutes,\n seconds = _ref.seconds;\n (0, _index.default)(1, arguments);\n var totalDays = 0;\n if (years) totalDays += years * daysInYear;\n if (months) totalDays += months * (daysInYear / 12);\n if (weeks) totalDays += weeks * 7;\n if (days) totalDays += days;\n var totalSeconds = totalDays * 24 * 60 * 60;\n if (hours) totalSeconds += hours * 60 * 60;\n if (minutes) totalSeconds += minutes * 60;\n if (seconds) totalSeconds += seconds;\n return Math.round(totalSeconds * 1000);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = millisecondsToHours;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name millisecondsToHours\n * @category Conversion Helpers\n * @summary Convert milliseconds to hours.\n *\n * @description\n * Convert a number of milliseconds to a full number of hours.\n *\n * @param {number} milliseconds - number of milliseconds to be converted\n *\n * @returns {number} the number of milliseconds converted in hours\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 7200000 milliseconds to hours:\n * const result = millisecondsToHours(7200000)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = millisecondsToHours(7199999)\n * //=> 1\n */\nfunction millisecondsToHours(milliseconds) {\n (0, _index.default)(1, arguments);\n var hours = milliseconds / _index2.millisecondsInHour;\n return Math.floor(hours);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = millisecondsToMinutes;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name millisecondsToMinutes\n * @category Conversion Helpers\n * @summary Convert milliseconds to minutes.\n *\n * @description\n * Convert a number of milliseconds to a full number of minutes.\n *\n * @param {number} milliseconds - number of milliseconds to be converted.\n *\n * @returns {number} the number of milliseconds converted in minutes\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 60000 milliseconds to minutes:\n * const result = millisecondsToMinutes(60000)\n * //=> 1\n *\n * @example\n * // It uses floor rounding:\n * const result = millisecondsToMinutes(119999)\n * //=> 1\n */\nfunction millisecondsToMinutes(milliseconds) {\n (0, _index.default)(1, arguments);\n var minutes = milliseconds / _index2.millisecondsInMinute;\n return Math.floor(minutes);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = millisecondsToSeconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name millisecondsToSeconds\n * @category Conversion Helpers\n * @summary Convert milliseconds to seconds.\n *\n * @description\n * Convert a number of milliseconds to a full number of seconds.\n *\n * @param {number} milliseconds - number of milliseconds to be converted\n *\n * @returns {number} the number of milliseconds converted in seconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 1000 miliseconds to seconds:\n * const result = millisecondsToSeconds(1000)\n * //=> 1\n *\n * @example\n * // It uses floor rounding:\n * const result = millisecondsToSeconds(1999)\n * //=> 1\n */\nfunction millisecondsToSeconds(milliseconds) {\n (0, _index.default)(1, arguments);\n var seconds = milliseconds / _index2.millisecondsInSecond;\n return Math.floor(seconds);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = minutesToHours;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name minutesToHours\n * @category Conversion Helpers\n * @summary Convert minutes to hours.\n *\n * @description\n * Convert a number of minutes to a full number of hours.\n *\n * @param {number} minutes - number of minutes to be converted\n *\n * @returns {number} the number of minutes converted in hours\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 140 minutes to hours:\n * const result = minutesToHours(120)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = minutesToHours(179)\n * //=> 2\n */\nfunction minutesToHours(minutes) {\n (0, _index.default)(1, arguments);\n var hours = minutes / _index2.minutesInHour;\n return Math.floor(hours);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = minutesToMilliseconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name minutesToMilliseconds\n * @category Conversion Helpers\n * @summary Convert minutes to milliseconds.\n *\n * @description\n * Convert a number of minutes to a full number of milliseconds.\n *\n * @param {number} minutes - number of minutes to be converted\n *\n * @returns {number} the number of minutes converted in milliseconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 minutes to milliseconds\n * const result = minutesToMilliseconds(2)\n * //=> 120000\n */\nfunction minutesToMilliseconds(minutes) {\n (0, _index.default)(1, arguments);\n return Math.floor(minutes * _index2.millisecondsInMinute);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = minutesToSeconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name minutesToSeconds\n * @category Conversion Helpers\n * @summary Convert minutes to seconds.\n *\n * @description\n * Convert a number of minutes to a full number of seconds.\n *\n * @param { number } minutes - number of minutes to be converted\n *\n * @returns {number} the number of minutes converted in seconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 minutes to seconds\n * const result = minutesToSeconds(2)\n * //=> 120\n */\nfunction minutesToSeconds(minutes) {\n (0, _index.default)(1, arguments);\n return Math.floor(minutes * _index2.secondsInMinute);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = monthsToQuarters;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name monthsToQuarters\n * @category Conversion Helpers\n * @summary Convert number of months to quarters.\n *\n * @description\n * Convert a number of months to a full number of quarters.\n *\n * @param {number} months - number of months to be converted.\n *\n * @returns {number} the number of months converted in quarters\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 6 months to quarters:\n * const result = monthsToQuarters(6)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = monthsToQuarters(7)\n * //=> 2\n */\nfunction monthsToQuarters(months) {\n (0, _index.default)(1, arguments);\n var quarters = months / _index2.monthsInQuarter;\n return Math.floor(quarters);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = monthsToYears;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name monthsToYears\n * @category Conversion Helpers\n * @summary Convert number of months to years.\n *\n * @description\n * Convert a number of months to a full number of years.\n *\n * @param {number} months - number of months to be converted\n *\n * @returns {number} the number of months converted in years\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 36 months to years:\n * const result = monthsToYears(36)\n * //=> 3\n *\n * // It uses floor rounding:\n * const result = monthsToYears(40)\n * //=> 3\n */\nfunction monthsToYears(months) {\n (0, _index.default)(1, arguments);\n var years = months / _index2.monthsInYear;\n return Math.floor(years);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextDay;\nvar _index = _interopRequireDefault(require(\"../addDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../getDay/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextDay\n * @category Weekday Helpers\n * @summary When is the next day of the week?\n *\n * @description\n * When is the next day of the week? 0-6 the day of the week, 0 represents Sunday.\n *\n * @param {Date | number} date - the date to check\n * @param {Day} day - day of the week\n * @returns {Date} - the date is the next day of week\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // When is the next Monday after Mar, 20, 2020?\n * const result = nextDay(new Date(2020, 2, 20), 1)\n * //=> Mon Mar 23 2020 00:00:00\n *\n * @example\n * // When is the next Tuesday after Mar, 21, 2020?\n * const result = nextDay(new Date(2020, 2, 21), 2)\n * //=> Tue Mar 24 2020 00:00:00\n */\nfunction nextDay(date, day) {\n (0, _index3.default)(2, arguments);\n var delta = day - (0, _index2.default)(date);\n if (delta <= 0) delta += 7;\n return (0, _index.default)(date, delta);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextFriday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextFriday\n * @category Weekday Helpers\n * @summary When is the next Friday?\n *\n * @description\n * When is the next Friday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Friday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Friday after Mar, 22, 2020?\n * const result = nextFriday(new Date(2020, 2, 22))\n * //=> Fri Mar 27 2020 00:00:00\n */\nfunction nextFriday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 5);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextMonday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextMonday\n * @category Weekday Helpers\n * @summary When is the next Monday?\n *\n * @description\n * When is the next Monday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Monday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Monday after Mar, 22, 2020?\n * const result = nextMonday(new Date(2020, 2, 22))\n * //=> Mon Mar 23 2020 00:00:00\n */\nfunction nextMonday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 1);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextSaturday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextSaturday\n * @category Weekday Helpers\n * @summary When is the next Saturday?\n *\n * @description\n * When is the next Saturday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Saturday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Saturday after Mar, 22, 2020?\n * const result = nextSaturday(new Date(2020, 2, 22))\n * //=> Sat Mar 28 2020 00:00:00\n */\nfunction nextSaturday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 6);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextSunday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextSunday\n * @category Weekday Helpers\n * @summary When is the next Sunday?\n *\n * @description\n * When is the next Sunday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Sunday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Sunday after Mar, 22, 2020?\n * const result = nextSunday(new Date(2020, 2, 22))\n * //=> Sun Mar 29 2020 00:00:00\n */\nfunction nextSunday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 0);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextThursday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextThursday\n * @category Weekday Helpers\n * @summary When is the next Thursday?\n *\n * @description\n * When is the next Thursday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Thursday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Thursday after Mar, 22, 2020?\n * const result = nextThursday(new Date(2020, 2, 22))\n * //=> Thur Mar 26 2020 00:00:00\n */\nfunction nextThursday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 4);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextTuesday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextTuesday\n * @category Weekday Helpers\n * @summary When is the next Tuesday?\n *\n * @description\n * When is the next Tuesday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Tuesday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Tuesday after Mar, 22, 2020?\n * const result = nextTuesday(new Date(2020, 2, 22))\n * //=> Tue Mar 24 2020 00:00:00\n */\nfunction nextTuesday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 2);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = nextWednesday;\nvar _index = _interopRequireDefault(require(\"../nextDay/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name nextWednesday\n * @category Weekday Helpers\n * @summary When is the next Wednesday?\n *\n * @description\n * When is the next Wednesday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the next Wednesday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the next Wednesday after Mar, 22, 2020?\n * const result = nextWednesday(new Date(2020, 2, 22))\n * //=> Wed Mar 25 2020 00:00:00\n */\nfunction nextWednesday(date) {\n (0, _index2.default)(1, arguments);\n return (0, _index.default)(date, 3);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = parseJSON;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name parseJSON\n * @category Common Helpers\n * @summary Parse a JSON date string\n *\n * @description\n * Converts a complete ISO date string in UTC time, the typical format for transmitting\n * a date in JSON, to a JavaScript `Date` instance.\n *\n * This is a minimal implementation for converting dates retrieved from a JSON API to\n * a `Date` instance which can be used with other functions in the `date-fns` library.\n * The following formats are supported:\n *\n * - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())`\n * - `2000-03-15T05:20:10Z`: Without milliseconds\n * - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages\n * - `2000-03-15T05:20:10+05:45`: With a positive or negative offset, the default JSON encoded format in some other languages\n * - `2000-03-15T05:20:10+0000`: With a zero offset without a colon\n * - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol\n * - `2000-03-15T05:20:10.1234567`: Up to 7 digits in milliseconds field. Only first 3 are taken into account since JS does not allow fractional milliseconds\n * - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting\n *\n * For convenience and ease of use these other input types are also supported\n * via [toDate]{@link https://date-fns.org/docs/toDate}:\n *\n * - A `Date` instance will be cloned\n * - A `number` will be treated as a timestamp\n *\n * Any other input type or invalid date strings will return an `Invalid Date`.\n *\n * @param {String|Number|Date} argument A fully formed ISO8601 date string to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n */\nfunction parseJSON(argument) {\n (0, _index2.default)(1, arguments);\n if (typeof argument === 'string') {\n var parts = argument.match(/(\\d{4})-(\\d{2})-(\\d{2})[T ](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{0,7}))?(?:Z|(.)(\\d{2}):?(\\d{2})?)?/);\n if (parts) {\n // Group 8 matches the sign\n return new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3], +parts[4] - (+parts[9] || 0) * (parts[8] == '-' ? -1 : 1), +parts[5] - (+parts[10] || 0) * (parts[8] == '-' ? -1 : 1), +parts[6], +((parts[7] || '0') + '00').substring(0, 3)));\n }\n return new Date(NaN);\n }\n return (0, _index.default)(argument);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousDay;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../getDay/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../subDays/index.js\"));\n/**\n * @name previousDay\n * @category Weekday Helpers\n * @summary When is the previous day of the week?\n *\n * @description\n * When is the previous day of the week? 0-6 the day of the week, 0 represents Sunday.\n *\n * @param {Date | number} date - the date to check\n * @param {number} day - day of the week\n * @returns {Date} - the date is the previous day of week\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // When is the previous Monday before Mar, 20, 2020?\n * const result = previousDay(new Date(2020, 2, 20), 1)\n * //=> Mon Mar 16 2020 00:00:00\n *\n * @example\n * // When is the previous Tuesday before Mar, 21, 2020?\n * const result = previousDay(new Date(2020, 2, 21), 2)\n * //=> Tue Mar 17 2020 00:00:00\n */\nfunction previousDay(date, day) {\n (0, _index.default)(2, arguments);\n var delta = (0, _index2.default)(date) - day;\n if (delta <= 0) delta += 7;\n return (0, _index3.default)(date, delta);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousFriday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousFriday\n * @category Weekday Helpers\n * @summary When is the previous Friday?\n *\n * @description\n * When is the previous Friday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Friday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Friday before Jun, 19, 2021?\n * const result = previousFriday(new Date(2021, 5, 19))\n * //=> Fri June 18 2021 00:00:00\n */\nfunction previousFriday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 5);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousMonday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousMonday\n * @category Weekday Helpers\n * @summary When is the previous Monday?\n *\n * @description\n * When is the previous Monday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Monday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Monday before Jun, 18, 2021?\n * const result = previousMonday(new Date(2021, 5, 18))\n * //=> Mon June 14 2021 00:00:00\n */\nfunction previousMonday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 1);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousSaturday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousSaturday\n * @category Weekday Helpers\n * @summary When is the previous Saturday?\n *\n * @description\n * When is the previous Saturday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Saturday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Saturday before Jun, 20, 2021?\n * const result = previousSaturday(new Date(2021, 5, 20))\n * //=> Sat June 19 2021 00:00:00\n */\nfunction previousSaturday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 6);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousSunday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousSunday\n * @category Weekday Helpers\n * @summary When is the previous Sunday?\n *\n * @description\n * When is the previous Sunday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Sunday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Sunday before Jun, 21, 2021?\n * const result = previousSunday(new Date(2021, 5, 21))\n * //=> Sun June 20 2021 00:00:00\n */\nfunction previousSunday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 0);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousThursday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousThursday\n * @category Weekday Helpers\n * @summary When is the previous Thursday?\n *\n * @description\n * When is the previous Thursday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Thursday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Thursday before Jun, 18, 2021?\n * const result = previousThursday(new Date(2021, 5, 18))\n * //=> Thu June 17 2021 00:00:00\n */\nfunction previousThursday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 4);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousTuesday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousTuesday\n * @category Weekday Helpers\n * @summary When is the previous Tuesday?\n *\n * @description\n * When is the previous Tuesday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Tuesday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Tuesday before Jun, 18, 2021?\n * const result = previousTuesday(new Date(2021, 5, 18))\n * //=> Tue June 15 2021 00:00:00\n */\nfunction previousTuesday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 2);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = previousWednesday;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../previousDay/index.js\"));\n/**\n * @name previousWednesday\n * @category Weekday Helpers\n * @summary When is the previous Wednesday?\n *\n * @description\n * When is the previous Wednesday?\n *\n * @param {Date | number} date - the date to start counting from\n * @returns {Date} the previous Wednesday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // When is the previous Wednesday before Jun, 18, 2021?\n * const result = previousWednesday(new Date(2021, 5, 18))\n * //=> Wed June 16 2021 00:00:00\n */\nfunction previousWednesday(date) {\n (0, _index.default)(1, arguments);\n return (0, _index2.default)(date, 3);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = quartersToMonths;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name quartersToMonths\n * @category Conversion Helpers\n * @summary Convert number of quarters to months.\n *\n * @description\n * Convert a number of quarters to a full number of months.\n *\n * @param {number} quarters - number of quarters to be converted\n *\n * @returns {number} the number of quarters converted in months\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 quarters to months\n * const result = quartersToMonths(2)\n * //=> 6\n */\nfunction quartersToMonths(quarters) {\n (0, _index.default)(1, arguments);\n return Math.floor(quarters * _index2.monthsInQuarter);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = quartersToYears;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name quartersToYears\n * @category Conversion Helpers\n * @summary Convert number of quarters to years.\n *\n * @description\n * Convert a number of quarters to a full number of years.\n *\n * @param {number} quarters - number of quarters to be converted\n *\n * @returns {number} the number of quarters converted in years\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 8 quarters to years\n * const result = quartersToYears(8)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = quartersToYears(11)\n * //=> 2\n */\nfunction quartersToYears(quarters) {\n (0, _index.default)(1, arguments);\n var years = quarters / _index2.quartersInYear;\n return Math.floor(years);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = roundToNearestMinutes;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = require(\"../_lib/roundingMethods/index.js\");\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name roundToNearestMinutes\n * @category Minute Helpers\n * @summary Rounds the given date to the nearest minute\n *\n * @description\n * Rounds the given date to the nearest minute (or number of minutes).\n * Rounds up when the given date is exactly between the nearest round minutes.\n *\n * @param {Date|Number} date - the date to round\n * @param {Object} [options] - an object with options.\n * @param {Number} [options.nearestTo=1] - nearest number of minutes to round to. E.g. `15` to round to quarter hours.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Date} the new date rounded to the closest minute\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.nearestTo` must be between 1 and 30\n *\n * @example\n * // Round 10 July 2014 12:12:34 to nearest minute:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34))\n * //=> Thu Jul 10 2014 12:13:00\n *\n * @example\n * // Round 10 July 2014 12:07:30 to nearest quarter hour:\n * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 })\n * // rounds up because given date is exactly between 12:00:00 and 12:15:00\n * //=> Thu Jul 10 2014 12:15:00\n */\nfunction roundToNearestMinutes(dirtyDate, options) {\n var _options$nearestTo;\n if (arguments.length < 1) {\n throw new TypeError('1 argument required, but only none provided present');\n }\n var nearestTo = (0, _index3.default)((_options$nearestTo = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo !== void 0 ? _options$nearestTo : 1);\n if (nearestTo < 1 || nearestTo > 30) {\n throw new RangeError('`options.nearestTo` must be between 1 and 30');\n }\n var date = (0, _index.default)(dirtyDate);\n var seconds = date.getSeconds(); // relevant if nearestTo is 1, which is the default case\n var minutes = date.getMinutes() + seconds / 60;\n var roundingMethod = (0, _index2.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod);\n var roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo;\n var remainderMinutes = minutes % nearestTo;\n var addedMinutes = Math.round(remainderMinutes / nearestTo) * nearestTo;\n return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), roundedMinutes + addedMinutes);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = secondsToHours;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name secondsToHours\n * @category Conversion Helpers\n * @summary Convert seconds to hours.\n *\n * @description\n * Convert a number of seconds to a full number of hours.\n *\n * @param {number} seconds - number of seconds to be converted\n *\n * @returns {number} the number of seconds converted in hours\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 7200 seconds into hours\n * const result = secondsToHours(7200)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = secondsToHours(7199)\n * //=> 1\n */\nfunction secondsToHours(seconds) {\n (0, _index.default)(1, arguments);\n var hours = seconds / _index2.secondsInHour;\n return Math.floor(hours);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = secondsToMilliseconds;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name secondsToMilliseconds\n * @category Conversion Helpers\n * @summary Convert seconds to milliseconds.\n *\n * @description\n * Convert a number of seconds to a full number of milliseconds.\n *\n * @param {number} seconds - number of seconds to be converted\n *\n * @returns {number} the number of seconds converted in milliseconds\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 seconds into milliseconds\n * const result = secondsToMilliseconds(2)\n * //=> 2000\n */\nfunction secondsToMilliseconds(seconds) {\n (0, _index.default)(1, arguments);\n return seconds * _index2.millisecondsInSecond;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = secondsToMinutes;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name secondsToMinutes\n * @category Conversion Helpers\n * @summary Convert seconds to minutes.\n *\n * @description\n * Convert a number of seconds to a full number of minutes.\n *\n * @param {number} seconds - number of seconds to be converted\n *\n * @returns {number} the number of seconds converted in minutes\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 120 seconds into minutes\n * const result = secondsToMinutes(120)\n * //=> 2\n *\n * @example\n * // It uses floor rounding:\n * const result = secondsToMinutes(119)\n * //=> 1\n */\nfunction secondsToMinutes(seconds) {\n (0, _index.default)(1, arguments);\n var minutes = seconds / _index2.secondsInMinute;\n return Math.floor(minutes);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setDate;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} dayOfMonth - the day of the month of the new date\n * @returns {Date} the new date with the day of the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nfunction setDate(dirtyDate, dirtyDayOfMonth) {\n (0, _index3.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var dayOfMonth = (0, _index.default)(dirtyDayOfMonth);\n date.setDate(dayOfMonth);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setDay;\nvar _index = _interopRequireDefault(require(\"../addDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index5 = require(\"../_lib/defaultOptions/index.js\");\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} day - the day of the week of the new date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date} the new date with the day of the week set\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nfunction setDay(dirtyDate, dirtyDay, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n (0, _index4.default)(2, arguments);\n var defaultOptions = (0, _index5.getDefaultOptions)();\n var weekStartsOn = (0, _index3.default)((_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 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n var date = (0, _index2.default)(dirtyDate);\n var day = (0, _index3.default)(dirtyDay);\n var currentDay = date.getDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var delta = 7 - weekStartsOn;\n var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7;\n return (0, _index.default)(date, diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setDayOfYear;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setDayOfYear\n * @category Day Helpers\n * @summary Set the day of the year to the given date.\n *\n * @description\n * Set the day of the year to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} dayOfYear - the day of the year of the new date\n * @returns {Date} the new date with the day of the year set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set the 2nd day of the year to 2 July 2014:\n * const result = setDayOfYear(new Date(2014, 6, 2), 2)\n * //=> Thu Jan 02 2014 00:00:00\n */\nfunction setDayOfYear(dirtyDate, dirtyDayOfYear) {\n (0, _index3.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var dayOfYear = (0, _index.default)(dirtyDayOfYear);\n date.setMonth(0);\n date.setDate(dayOfYear);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setDefaultOptions;\nvar _index = require(\"../_lib/defaultOptions/index.js\");\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setDefaultOptions\n * @category Common Helpers\n * @summary Set default options including locale.\n * @pure false\n *\n * @description\n * Sets the defaults for\n * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`\n * arguments for all functions.\n *\n * @param {Object} newOptions - an object with options.\n * @param {Locale} [newOptions.locale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [newOptions.weekStartsOn] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [newOptions.firstWeekContainsDate] - the day of January, which is always in the first week of the year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Set global locale:\n * import { es } from 'date-fns/locale'\n * setDefaultOptions({ locale: es })\n * const result = format(new Date(2014, 8, 2), 'PPPP')\n * //=> 'martes, 2 de septiembre de 2014'\n *\n * @example\n * // Start of the week for 2 September 2014:\n * const result = startOfWeek(new Date(2014, 8, 2))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Start of the week for 2 September 2014,\n * // when we set that week starts on Monday by default:\n * setDefaultOptions({ weekStartsOn: 1 })\n * const result = startOfWeek(new Date(2014, 8, 2))\n * //=> Mon Sep 01 2014 00:00:00\n *\n * @example\n * // Manually set options take priority over default options:\n * setDefaultOptions({ weekStartsOn: 1 })\n * const result = startOfWeek(new Date(2014, 8, 2), { weekStartsOn: 0 })\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Remove the option by setting it to `undefined`:\n * setDefaultOptions({ weekStartsOn: 1 })\n * setDefaultOptions({ weekStartsOn: undefined })\n * const result = startOfWeek(new Date(2014, 8, 2))\n * //=> Sun Aug 31 2014 00:00:00\n */\nfunction setDefaultOptions(newOptions) {\n (0, _index2.default)(1, arguments);\n var result = {};\n var defaultOptions = (0, _index.getDefaultOptions)();\n for (var property in defaultOptions) {\n if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) {\n ;\n result[property] = defaultOptions[property];\n }\n }\n for (var _property in newOptions) {\n if (Object.prototype.hasOwnProperty.call(newOptions, _property)) {\n if (newOptions[_property] === undefined) {\n delete result[_property];\n } else {\n ;\n result[_property] = newOptions[_property];\n }\n }\n }\n (0, _index.setDefaultOptions)(result);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setISODay;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../addDays/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../getISODay/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setISODay\n * @category Weekday Helpers\n * @summary Set the day of the ISO week to the given date.\n *\n * @description\n * Set the day of the ISO week to the given date.\n * ISO week starts with Monday.\n * 7 is the index of Sunday, 1 is the index of Monday etc.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} day - the day of the ISO week of the new date\n * @returns {Date} the new date with the day of the ISO week set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set Sunday to 1 September 2014:\n * const result = setISODay(new Date(2014, 8, 1), 7)\n * //=> Sun Sep 07 2014 00:00:00\n */\nfunction setISODay(dirtyDate, dirtyDay) {\n (0, _index5.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var day = (0, _index.default)(dirtyDay);\n var currentDay = (0, _index4.default)(date);\n var diff = day - currentDay;\n return (0, _index3.default)(date, diff);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setISOWeek;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../getISOWeek/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setISOWeek\n * @category ISO Week Helpers\n * @summary Set the ISO week to the given date.\n *\n * @description\n * Set the ISO week to the given date, saving the weekday number.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} isoWeek - the ISO week of the new date\n * @returns {Date} the new date with the ISO week set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set the 53rd ISO week to 7 August 2004:\n * const result = setISOWeek(new Date(2004, 7, 7), 53)\n * //=> Sat Jan 01 2005 00:00:00\n */\nfunction setISOWeek(dirtyDate, dirtyISOWeek) {\n (0, _index4.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var isoWeek = (0, _index.default)(dirtyISOWeek);\n var diff = (0, _index3.default)(date) - isoWeek;\n date.setDate(date.getDate() - diff * 7);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setMilliseconds;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name setMilliseconds\n * @category Millisecond Helpers\n * @summary Set the milliseconds to the given date.\n *\n * @description\n * Set the milliseconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} milliseconds - the milliseconds of the new date\n * @returns {Date} the new date with the milliseconds set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set 300 milliseconds to 1 September 2014 11:30:40.500:\n * const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300)\n * //=> Mon Sep 01 2014 11:30:40.300\n */\nfunction setMilliseconds(dirtyDate, dirtyMilliseconds) {\n (0, _index3.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var milliseconds = (0, _index.default)(dirtyMilliseconds);\n date.setMilliseconds(milliseconds);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setWeek;\nvar _index = _interopRequireDefault(require(\"../getWeek/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name setWeek\n * @category Week Helpers\n * @summary Set the local week to the given date.\n *\n * @description\n * Set the local week to the given date, saving the weekday number.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} week - the week of the new date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Date} the new date with the local week set\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // Set the 1st week to 2 January 2005 with default options:\n * const result = setWeek(new Date(2005, 0, 2), 1)\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // Set the 1st week to 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January:\n * const result = setWeek(new Date(2005, 0, 2), 1, {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Sun Jan 4 2004 00:00:00\n */\nfunction setWeek(dirtyDate, dirtyWeek, options) {\n (0, _index3.default)(2, arguments);\n var date = (0, _index2.default)(dirtyDate);\n var week = (0, _index4.default)(dirtyWeek);\n var diff = (0, _index.default)(date, options) - week;\n date.setDate(date.getDate() - diff * 7);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = setWeekYear;\nvar _index = _interopRequireDefault(require(\"../differenceInCalendarDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../startOfWeekYear/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index6 = require(\"../_lib/defaultOptions/index.js\");\n/**\n * @name setWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Set the local week-numbering year to the given date.\n *\n * @description\n * Set the local week-numbering year to the given date,\n * saving the week number and the weekday number.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} weekYear - the local week-numbering year of the new date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Date} the new date with the local week-numbering year set\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // Set the local week-numbering year 2004 to 2 January 2010 with default options:\n * const result = setWeekYear(new Date(2010, 0, 2), 2004)\n * //=> Sat Jan 03 2004 00:00:00\n *\n * @example\n * // Set the local week-numbering year 2004 to 2 January 2010,\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = setWeekYear(new Date(2010, 0, 2), 2004, {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Sat Jan 01 2005 00:00:00\n */\nfunction setWeekYear(dirtyDate, dirtyWeekYear, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n (0, _index5.default)(2, arguments);\n var defaultOptions = (0, _index6.getDefaultOptions)();\n var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n var date = (0, _index3.default)(dirtyDate);\n var weekYear = (0, _index4.default)(dirtyWeekYear);\n var diff = (0, _index.default)(date, (0, _index2.default)(date, options));\n var firstWeek = new Date(0);\n firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n date = (0, _index2.default)(firstWeek, options);\n date.setDate(date.getDate() + diff);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfDecade;\nvar _index = _interopRequireDefault(require(\"../toDate/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name startOfDecade\n * @category Decade Helpers\n * @summary Return the start of a decade for the given date.\n *\n * @description\n * Return the start of a decade for the given date.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a decade\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a decade for 21 October 2015 00:00:00:\n * const result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00))\n * //=> Jan 01 2010 00:00:00\n */\nfunction startOfDecade(dirtyDate) {\n (0, _index2.default)(1, arguments);\n var date = (0, _index.default)(dirtyDate);\n var year = date.getFullYear();\n var decade = Math.floor(year / 10) * 10;\n date.setFullYear(decade, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfToday;\nvar _index = _interopRequireDefault(require(\"../startOfDay/index.js\"));\n/**\n * @name startOfToday\n * @category Day Helpers\n * @summary Return the start of today.\n * @pure false\n *\n * @description\n * Return the start of today.\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the start of today\n *\n * @example\n * // If today is 6 October 2014:\n * const result = startOfToday()\n * //=> Mon Oct 6 2014 00:00:00\n */\nfunction startOfToday() {\n return (0, _index.default)(Date.now());\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfTomorrow;\n/**\n * @name startOfTomorrow\n * @category Day Helpers\n * @summary Return the start of tomorrow.\n * @pure false\n *\n * @description\n * Return the start of tomorrow.\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `new Date()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the start of tomorrow\n *\n * @example\n * // If today is 6 October 2014:\n * const result = startOfTomorrow()\n * //=> Tue Oct 7 2014 00:00:00\n */\nfunction startOfTomorrow() {\n var now = new Date();\n var year = now.getFullYear();\n var month = now.getMonth();\n var day = now.getDate();\n var date = new Date(0);\n date.setFullYear(year, month, day + 1);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = startOfYesterday;\n/**\n * @name startOfYesterday\n * @category Day Helpers\n * @summary Return the start of yesterday.\n * @pure false\n *\n * @description\n * Return the start of yesterday.\n *\n * > \u26A0\uFE0F Please note that this function is not present in the FP submodule as\n * > it uses `new Date()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the start of yesterday\n *\n * @example\n * // If today is 6 October 2014:\n * const result = startOfYesterday()\n * //=> Sun Oct 5 2014 00:00:00\n */\nfunction startOfYesterday() {\n var now = new Date();\n var year = now.getFullYear();\n var month = now.getMonth();\n var day = now.getDate();\n var date = new Date(0);\n date.setFullYear(year, month, day - 1);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = sub;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _index = _interopRequireDefault(require(\"../subDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../subMonths/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name sub\n * @category Common Helpers\n * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.\n *\n * @description\n * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted\n *\n * | Key | Description |\n * |---------|------------------------------------|\n * | years | Amount of years to be subtracted |\n * | months | Amount of months to be subtracted |\n * | weeks | Amount of weeks to be subtracted |\n * | days | Amount of days to be subtracted |\n * | hours | Amount of hours to be subtracted |\n * | minutes | Amount of minutes to be subtracted |\n * | seconds | Amount of seconds to be subtracted |\n *\n * All values default to 0\n *\n * @returns {Date} the new date with the seconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract the following duration from 15 June 2017 15:29:20\n * const result = sub(new Date(2017, 5, 15, 15, 29, 20), {\n * years: 2,\n * months: 9,\n * weeks: 1,\n * days: 7,\n * hours: 5,\n * minutes: 9,\n * seconds: 30\n * })\n * //=> Mon Sep 1 2014 10:19:50\n */\nfunction sub(date, duration) {\n (0, _index3.default)(2, arguments);\n if (!duration || (0, _typeof2.default)(duration) !== 'object') return new Date(NaN);\n var years = duration.years ? (0, _index4.default)(duration.years) : 0;\n var months = duration.months ? (0, _index4.default)(duration.months) : 0;\n var weeks = duration.weeks ? (0, _index4.default)(duration.weeks) : 0;\n var days = duration.days ? (0, _index4.default)(duration.days) : 0;\n var hours = duration.hours ? (0, _index4.default)(duration.hours) : 0;\n var minutes = duration.minutes ? (0, _index4.default)(duration.minutes) : 0;\n var seconds = duration.seconds ? (0, _index4.default)(duration.seconds) : 0;\n\n // Subtract years and months\n var dateWithoutMonths = (0, _index2.default)(date, months + years * 12);\n\n // Subtract weeks and days\n var dateWithoutDays = (0, _index.default)(dateWithoutMonths, days + weeks * 7);\n\n // Subtract hours, minutes and seconds\n var minutestoSub = minutes + hours * 60;\n var secondstoSub = seconds + minutestoSub * 60;\n var mstoSub = secondstoSub * 1000;\n var finalDate = new Date(dateWithoutDays.getTime() - mstoSub);\n return finalDate;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = subBusinessDays;\nvar _index = _interopRequireDefault(require(\"../addBusinessDays/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name subBusinessDays\n * @category Day Helpers\n * @summary Substract the specified number of business days (mon - fri) to the given date.\n *\n * @description\n * Substract the specified number of business days (mon - fri) to the given date, ignoring weekends.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of business days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the business days subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Substract 10 business days from 1 September 2014:\n * const result = subBusinessDays(new Date(2014, 8, 1), 10)\n * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days)\n */\nfunction subBusinessDays(dirtyDate, dirtyAmount) {\n (0, _index2.default)(2, arguments);\n var amount = (0, _index3.default)(dirtyAmount);\n return (0, _index.default)(dirtyDate, -amount);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = subHours;\nvar _index = _interopRequireDefault(require(\"../addHours/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name subHours\n * @category Hour Helpers\n * @summary Subtract the specified number of hours from the given date.\n *\n * @description\n * Subtract the specified number of hours from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of hours to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the hours subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 2 hours from 11 July 2014 01:00:00:\n * const result = subHours(new Date(2014, 6, 11, 1, 0), 2)\n * //=> Thu Jul 10 2014 23:00:00\n */\nfunction subHours(dirtyDate, dirtyAmount) {\n (0, _index2.default)(2, arguments);\n var amount = (0, _index3.default)(dirtyAmount);\n return (0, _index.default)(dirtyDate, -amount);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = subMinutes;\nvar _index = _interopRequireDefault(require(\"../addMinutes/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\n/**\n * @name subMinutes\n * @category Minute Helpers\n * @summary Subtract the specified number of minutes from the given date.\n *\n * @description\n * Subtract the specified number of minutes from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of minutes to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the minutes subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 30 minutes from 10 July 2014 12:00:00:\n * const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 11:30:00\n */\nfunction subMinutes(dirtyDate, dirtyAmount) {\n (0, _index2.default)(2, arguments);\n var amount = (0, _index3.default)(dirtyAmount);\n return (0, _index.default)(dirtyDate, -amount);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = subSeconds;\nvar _index = _interopRequireDefault(require(\"../_lib/toInteger/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"../addSeconds/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\n/**\n * @name subSeconds\n * @category Second Helpers\n * @summary Subtract the specified number of seconds from the given date.\n *\n * @description\n * Subtract the specified number of seconds from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of seconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the seconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 30 seconds from 10 July 2014 12:45:00:\n * const result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)\n * //=> Thu Jul 10 2014 12:44:30\n */\nfunction subSeconds(dirtyDate, dirtyAmount) {\n (0, _index3.default)(2, arguments);\n var amount = (0, _index.default)(dirtyAmount);\n return (0, _index2.default)(dirtyDate, -amount);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = weeksToDays;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name weeksToDays\n * @category Conversion Helpers\n * @summary Convert weeks to days.\n *\n * @description\n * Convert a number of weeks to a full number of days.\n *\n * @param {number} weeks - number of weeks to be converted\n *\n * @returns {number} the number of weeks converted in days\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 weeks into days\n * const result = weeksToDays(2)\n * //=> 14\n */\nfunction weeksToDays(weeks) {\n (0, _index.default)(1, arguments);\n return Math.floor(weeks * _index2.daysInWeek);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = yearsToMonths;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name yearsToMonths\n * @category Conversion Helpers\n * @summary Convert years to months.\n *\n * @description\n * Convert a number of years to a full number of months.\n *\n * @param {number} years - number of years to be converted\n *\n * @returns {number} the number of years converted in months\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 years into months\n * const result = yearsToMonths(2)\n * //=> 24\n */\nfunction yearsToMonths(years) {\n (0, _index.default)(1, arguments);\n return Math.floor(years * _index2.monthsInYear);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = yearsToQuarters;\nvar _index = _interopRequireDefault(require(\"../_lib/requiredArgs/index.js\"));\nvar _index2 = require(\"../constants/index.js\");\n/**\n * @name yearsToQuarters\n * @category Conversion Helpers\n * @summary Convert years to quarters.\n *\n * @description\n * Convert a number of years to a full number of quarters.\n *\n * @param {number} years - number of years to be converted\n *\n * @returns {number} the number of years converted in quarters\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Convert 2 years to quarters\n * const result = yearsToQuarters(2)\n * //=> 8\n */\nfunction yearsToQuarters(years) {\n (0, _index.default)(1, arguments);\n return Math.floor(years * _index2.quartersInYear);\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n add: true,\n addBusinessDays: true,\n addDays: true,\n addHours: true,\n addISOWeekYears: true,\n addMilliseconds: true,\n addMinutes: true,\n addMonths: true,\n addQuarters: true,\n addSeconds: true,\n addWeeks: true,\n addYears: true,\n areIntervalsOverlapping: true,\n clamp: true,\n closestIndexTo: true,\n closestTo: true,\n compareAsc: true,\n compareDesc: true,\n daysToWeeks: true,\n differenceInBusinessDays: true,\n differenceInCalendarDays: true,\n differenceInCalendarISOWeekYears: true,\n differenceInCalendarISOWeeks: true,\n differenceInCalendarMonths: true,\n differenceInCalendarQuarters: true,\n differenceInCalendarWeeks: true,\n differenceInCalendarYears: true,\n differenceInDays: true,\n differenceInHours: true,\n differenceInISOWeekYears: true,\n differenceInMilliseconds: true,\n differenceInMinutes: true,\n differenceInMonths: true,\n differenceInQuarters: true,\n differenceInSeconds: true,\n differenceInWeeks: true,\n differenceInYears: true,\n eachDayOfInterval: true,\n eachHourOfInterval: true,\n eachMinuteOfInterval: true,\n eachMonthOfInterval: true,\n eachQuarterOfInterval: true,\n eachWeekOfInterval: true,\n eachWeekendOfInterval: true,\n eachWeekendOfMonth: true,\n eachWeekendOfYear: true,\n eachYearOfInterval: true,\n endOfDay: true,\n endOfDecade: true,\n endOfHour: true,\n endOfISOWeek: true,\n endOfISOWeekYear: true,\n endOfMinute: true,\n endOfMonth: true,\n endOfQuarter: true,\n endOfSecond: true,\n endOfToday: true,\n endOfTomorrow: true,\n endOfWeek: true,\n endOfYear: true,\n endOfYesterday: true,\n format: true,\n formatDistance: true,\n formatDistanceStrict: true,\n formatDistanceToNow: true,\n formatDistanceToNowStrict: true,\n formatDuration: true,\n formatISO: true,\n formatISO9075: true,\n formatISODuration: true,\n formatRFC3339: true,\n formatRFC7231: true,\n formatRelative: true,\n fromUnixTime: true,\n getDate: true,\n getDay: true,\n getDayOfYear: true,\n getDaysInMonth: true,\n getDaysInYear: true,\n getDecade: true,\n getDefaultOptions: true,\n getHours: true,\n getISODay: true,\n getISOWeek: true,\n getISOWeekYear: true,\n getISOWeeksInYear: true,\n getMilliseconds: true,\n getMinutes: true,\n getMonth: true,\n getOverlappingDaysInIntervals: true,\n getQuarter: true,\n getSeconds: true,\n getTime: true,\n getUnixTime: true,\n getWeek: true,\n getWeekOfMonth: true,\n getWeekYear: true,\n getWeeksInMonth: true,\n getYear: true,\n hoursToMilliseconds: true,\n hoursToMinutes: true,\n hoursToSeconds: true,\n intervalToDuration: true,\n intlFormat: true,\n intlFormatDistance: true,\n isAfter: true,\n isBefore: true,\n isDate: true,\n isEqual: true,\n isExists: true,\n isFirstDayOfMonth: true,\n isFriday: true,\n isFuture: true,\n isLastDayOfMonth: true,\n isLeapYear: true,\n isMatch: true,\n isMonday: true,\n isPast: true,\n isSameDay: true,\n isSameHour: true,\n isSameISOWeek: true,\n isSameISOWeekYear: true,\n isSameMinute: true,\n isSameMonth: true,\n isSameQuarter: true,\n isSameSecond: true,\n isSameWeek: true,\n isSameYear: true,\n isSaturday: true,\n isSunday: true,\n isThisHour: true,\n isThisISOWeek: true,\n isThisMinute: true,\n isThisMonth: true,\n isThisQuarter: true,\n isThisSecond: true,\n isThisWeek: true,\n isThisYear: true,\n isThursday: true,\n isToday: true,\n isTomorrow: true,\n isTuesday: true,\n isValid: true,\n isWednesday: true,\n isWeekend: true,\n isWithinInterval: true,\n isYesterday: true,\n lastDayOfDecade: true,\n lastDayOfISOWeek: true,\n lastDayOfISOWeekYear: true,\n lastDayOfMonth: true,\n lastDayOfQuarter: true,\n lastDayOfWeek: true,\n lastDayOfYear: true,\n lightFormat: true,\n max: true,\n milliseconds: true,\n millisecondsToHours: true,\n millisecondsToMinutes: true,\n millisecondsToSeconds: true,\n min: true,\n minutesToHours: true,\n minutesToMilliseconds: true,\n minutesToSeconds: true,\n monthsToQuarters: true,\n monthsToYears: true,\n nextDay: true,\n nextFriday: true,\n nextMonday: true,\n nextSaturday: true,\n nextSunday: true,\n nextThursday: true,\n nextTuesday: true,\n nextWednesday: true,\n parse: true,\n parseISO: true,\n parseJSON: true,\n previousDay: true,\n previousFriday: true,\n previousMonday: true,\n previousSaturday: true,\n previousSunday: true,\n previousThursday: true,\n previousTuesday: true,\n previousWednesday: true,\n quartersToMonths: true,\n quartersToYears: true,\n roundToNearestMinutes: true,\n secondsToHours: true,\n secondsToMilliseconds: true,\n secondsToMinutes: true,\n set: true,\n setDate: true,\n setDay: true,\n setDayOfYear: true,\n setDefaultOptions: true,\n setHours: true,\n setISODay: true,\n setISOWeek: true,\n setISOWeekYear: true,\n setMilliseconds: true,\n setMinutes: true,\n setMonth: true,\n setQuarter: true,\n setSeconds: true,\n setWeek: true,\n setWeekYear: true,\n setYear: true,\n startOfDay: true,\n startOfDecade: true,\n startOfHour: true,\n startOfISOWeek: true,\n startOfISOWeekYear: true,\n startOfMinute: true,\n startOfMonth: true,\n startOfQuarter: true,\n startOfSecond: true,\n startOfToday: true,\n startOfTomorrow: true,\n startOfWeek: true,\n startOfWeekYear: true,\n startOfYear: true,\n startOfYesterday: true,\n sub: true,\n subBusinessDays: true,\n subDays: true,\n subHours: true,\n subISOWeekYears: true,\n subMilliseconds: true,\n subMinutes: true,\n subMonths: true,\n subQuarters: true,\n subSeconds: true,\n subWeeks: true,\n subYears: true,\n toDate: true,\n weeksToDays: true,\n yearsToMonths: true,\n yearsToQuarters: true\n};\nObject.defineProperty(exports, \"add\", {\n enumerable: true,\n get: function get() {\n return _index.default;\n }\n});\nObject.defineProperty(exports, \"addBusinessDays\", {\n enumerable: true,\n get: function get() {\n return _index2.default;\n }\n});\nObject.defineProperty(exports, \"addDays\", {\n enumerable: true,\n get: function get() {\n return _index3.default;\n }\n});\nObject.defineProperty(exports, \"addHours\", {\n enumerable: true,\n get: function get() {\n return _index4.default;\n }\n});\nObject.defineProperty(exports, \"addISOWeekYears\", {\n enumerable: true,\n get: function get() {\n return _index5.default;\n }\n});\nObject.defineProperty(exports, \"addMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index6.default;\n }\n});\nObject.defineProperty(exports, \"addMinutes\", {\n enumerable: true,\n get: function get() {\n return _index7.default;\n }\n});\nObject.defineProperty(exports, \"addMonths\", {\n enumerable: true,\n get: function get() {\n return _index8.default;\n }\n});\nObject.defineProperty(exports, \"addQuarters\", {\n enumerable: true,\n get: function get() {\n return _index9.default;\n }\n});\nObject.defineProperty(exports, \"addSeconds\", {\n enumerable: true,\n get: function get() {\n return _index10.default;\n }\n});\nObject.defineProperty(exports, \"addWeeks\", {\n enumerable: true,\n get: function get() {\n return _index11.default;\n }\n});\nObject.defineProperty(exports, \"addYears\", {\n enumerable: true,\n get: function get() {\n return _index12.default;\n }\n});\nObject.defineProperty(exports, \"areIntervalsOverlapping\", {\n enumerable: true,\n get: function get() {\n return _index13.default;\n }\n});\nObject.defineProperty(exports, \"clamp\", {\n enumerable: true,\n get: function get() {\n return _index14.default;\n }\n});\nObject.defineProperty(exports, \"closestIndexTo\", {\n enumerable: true,\n get: function get() {\n return _index15.default;\n }\n});\nObject.defineProperty(exports, \"closestTo\", {\n enumerable: true,\n get: function get() {\n return _index16.default;\n }\n});\nObject.defineProperty(exports, \"compareAsc\", {\n enumerable: true,\n get: function get() {\n return _index17.default;\n }\n});\nObject.defineProperty(exports, \"compareDesc\", {\n enumerable: true,\n get: function get() {\n return _index18.default;\n }\n});\nObject.defineProperty(exports, \"daysToWeeks\", {\n enumerable: true,\n get: function get() {\n return _index19.default;\n }\n});\nObject.defineProperty(exports, \"differenceInBusinessDays\", {\n enumerable: true,\n get: function get() {\n return _index20.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarDays\", {\n enumerable: true,\n get: function get() {\n return _index21.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarISOWeekYears\", {\n enumerable: true,\n get: function get() {\n return _index22.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarISOWeeks\", {\n enumerable: true,\n get: function get() {\n return _index23.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarMonths\", {\n enumerable: true,\n get: function get() {\n return _index24.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarQuarters\", {\n enumerable: true,\n get: function get() {\n return _index25.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarWeeks\", {\n enumerable: true,\n get: function get() {\n return _index26.default;\n }\n});\nObject.defineProperty(exports, \"differenceInCalendarYears\", {\n enumerable: true,\n get: function get() {\n return _index27.default;\n }\n});\nObject.defineProperty(exports, \"differenceInDays\", {\n enumerable: true,\n get: function get() {\n return _index28.default;\n }\n});\nObject.defineProperty(exports, \"differenceInHours\", {\n enumerable: true,\n get: function get() {\n return _index29.default;\n }\n});\nObject.defineProperty(exports, \"differenceInISOWeekYears\", {\n enumerable: true,\n get: function get() {\n return _index30.default;\n }\n});\nObject.defineProperty(exports, \"differenceInMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index31.default;\n }\n});\nObject.defineProperty(exports, \"differenceInMinutes\", {\n enumerable: true,\n get: function get() {\n return _index32.default;\n }\n});\nObject.defineProperty(exports, \"differenceInMonths\", {\n enumerable: true,\n get: function get() {\n return _index33.default;\n }\n});\nObject.defineProperty(exports, \"differenceInQuarters\", {\n enumerable: true,\n get: function get() {\n return _index34.default;\n }\n});\nObject.defineProperty(exports, \"differenceInSeconds\", {\n enumerable: true,\n get: function get() {\n return _index35.default;\n }\n});\nObject.defineProperty(exports, \"differenceInWeeks\", {\n enumerable: true,\n get: function get() {\n return _index36.default;\n }\n});\nObject.defineProperty(exports, \"differenceInYears\", {\n enumerable: true,\n get: function get() {\n return _index37.default;\n }\n});\nObject.defineProperty(exports, \"eachDayOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index38.default;\n }\n});\nObject.defineProperty(exports, \"eachHourOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index39.default;\n }\n});\nObject.defineProperty(exports, \"eachMinuteOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index40.default;\n }\n});\nObject.defineProperty(exports, \"eachMonthOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index41.default;\n }\n});\nObject.defineProperty(exports, \"eachQuarterOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index42.default;\n }\n});\nObject.defineProperty(exports, \"eachWeekOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index43.default;\n }\n});\nObject.defineProperty(exports, \"eachWeekendOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index44.default;\n }\n});\nObject.defineProperty(exports, \"eachWeekendOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index45.default;\n }\n});\nObject.defineProperty(exports, \"eachWeekendOfYear\", {\n enumerable: true,\n get: function get() {\n return _index46.default;\n }\n});\nObject.defineProperty(exports, \"eachYearOfInterval\", {\n enumerable: true,\n get: function get() {\n return _index47.default;\n }\n});\nObject.defineProperty(exports, \"endOfDay\", {\n enumerable: true,\n get: function get() {\n return _index48.default;\n }\n});\nObject.defineProperty(exports, \"endOfDecade\", {\n enumerable: true,\n get: function get() {\n return _index49.default;\n }\n});\nObject.defineProperty(exports, \"endOfHour\", {\n enumerable: true,\n get: function get() {\n return _index50.default;\n }\n});\nObject.defineProperty(exports, \"endOfISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index51.default;\n }\n});\nObject.defineProperty(exports, \"endOfISOWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index52.default;\n }\n});\nObject.defineProperty(exports, \"endOfMinute\", {\n enumerable: true,\n get: function get() {\n return _index53.default;\n }\n});\nObject.defineProperty(exports, \"endOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index54.default;\n }\n});\nObject.defineProperty(exports, \"endOfQuarter\", {\n enumerable: true,\n get: function get() {\n return _index55.default;\n }\n});\nObject.defineProperty(exports, \"endOfSecond\", {\n enumerable: true,\n get: function get() {\n return _index56.default;\n }\n});\nObject.defineProperty(exports, \"endOfToday\", {\n enumerable: true,\n get: function get() {\n return _index57.default;\n }\n});\nObject.defineProperty(exports, \"endOfTomorrow\", {\n enumerable: true,\n get: function get() {\n return _index58.default;\n }\n});\nObject.defineProperty(exports, \"endOfWeek\", {\n enumerable: true,\n get: function get() {\n return _index59.default;\n }\n});\nObject.defineProperty(exports, \"endOfYear\", {\n enumerable: true,\n get: function get() {\n return _index60.default;\n }\n});\nObject.defineProperty(exports, \"endOfYesterday\", {\n enumerable: true,\n get: function get() {\n return _index61.default;\n }\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _index62.default;\n }\n});\nObject.defineProperty(exports, \"formatDistance\", {\n enumerable: true,\n get: function get() {\n return _index63.default;\n }\n});\nObject.defineProperty(exports, \"formatDistanceStrict\", {\n enumerable: true,\n get: function get() {\n return _index64.default;\n }\n});\nObject.defineProperty(exports, \"formatDistanceToNow\", {\n enumerable: true,\n get: function get() {\n return _index65.default;\n }\n});\nObject.defineProperty(exports, \"formatDistanceToNowStrict\", {\n enumerable: true,\n get: function get() {\n return _index66.default;\n }\n});\nObject.defineProperty(exports, \"formatDuration\", {\n enumerable: true,\n get: function get() {\n return _index67.default;\n }\n});\nObject.defineProperty(exports, \"formatISO\", {\n enumerable: true,\n get: function get() {\n return _index68.default;\n }\n});\nObject.defineProperty(exports, \"formatISO9075\", {\n enumerable: true,\n get: function get() {\n return _index69.default;\n }\n});\nObject.defineProperty(exports, \"formatISODuration\", {\n enumerable: true,\n get: function get() {\n return _index70.default;\n }\n});\nObject.defineProperty(exports, \"formatRFC3339\", {\n enumerable: true,\n get: function get() {\n return _index71.default;\n }\n});\nObject.defineProperty(exports, \"formatRFC7231\", {\n enumerable: true,\n get: function get() {\n return _index72.default;\n }\n});\nObject.defineProperty(exports, \"formatRelative\", {\n enumerable: true,\n get: function get() {\n return _index73.default;\n }\n});\nObject.defineProperty(exports, \"fromUnixTime\", {\n enumerable: true,\n get: function get() {\n return _index74.default;\n }\n});\nObject.defineProperty(exports, \"getDate\", {\n enumerable: true,\n get: function get() {\n return _index75.default;\n }\n});\nObject.defineProperty(exports, \"getDay\", {\n enumerable: true,\n get: function get() {\n return _index76.default;\n }\n});\nObject.defineProperty(exports, \"getDayOfYear\", {\n enumerable: true,\n get: function get() {\n return _index77.default;\n }\n});\nObject.defineProperty(exports, \"getDaysInMonth\", {\n enumerable: true,\n get: function get() {\n return _index78.default;\n }\n});\nObject.defineProperty(exports, \"getDaysInYear\", {\n enumerable: true,\n get: function get() {\n return _index79.default;\n }\n});\nObject.defineProperty(exports, \"getDecade\", {\n enumerable: true,\n get: function get() {\n return _index80.default;\n }\n});\nObject.defineProperty(exports, \"getDefaultOptions\", {\n enumerable: true,\n get: function get() {\n return _index81.default;\n }\n});\nObject.defineProperty(exports, \"getHours\", {\n enumerable: true,\n get: function get() {\n return _index82.default;\n }\n});\nObject.defineProperty(exports, \"getISODay\", {\n enumerable: true,\n get: function get() {\n return _index83.default;\n }\n});\nObject.defineProperty(exports, \"getISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index84.default;\n }\n});\nObject.defineProperty(exports, \"getISOWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index85.default;\n }\n});\nObject.defineProperty(exports, \"getISOWeeksInYear\", {\n enumerable: true,\n get: function get() {\n return _index86.default;\n }\n});\nObject.defineProperty(exports, \"getMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index87.default;\n }\n});\nObject.defineProperty(exports, \"getMinutes\", {\n enumerable: true,\n get: function get() {\n return _index88.default;\n }\n});\nObject.defineProperty(exports, \"getMonth\", {\n enumerable: true,\n get: function get() {\n return _index89.default;\n }\n});\nObject.defineProperty(exports, \"getOverlappingDaysInIntervals\", {\n enumerable: true,\n get: function get() {\n return _index90.default;\n }\n});\nObject.defineProperty(exports, \"getQuarter\", {\n enumerable: true,\n get: function get() {\n return _index91.default;\n }\n});\nObject.defineProperty(exports, \"getSeconds\", {\n enumerable: true,\n get: function get() {\n return _index92.default;\n }\n});\nObject.defineProperty(exports, \"getTime\", {\n enumerable: true,\n get: function get() {\n return _index93.default;\n }\n});\nObject.defineProperty(exports, \"getUnixTime\", {\n enumerable: true,\n get: function get() {\n return _index94.default;\n }\n});\nObject.defineProperty(exports, \"getWeek\", {\n enumerable: true,\n get: function get() {\n return _index95.default;\n }\n});\nObject.defineProperty(exports, \"getWeekOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index96.default;\n }\n});\nObject.defineProperty(exports, \"getWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index97.default;\n }\n});\nObject.defineProperty(exports, \"getWeeksInMonth\", {\n enumerable: true,\n get: function get() {\n return _index98.default;\n }\n});\nObject.defineProperty(exports, \"getYear\", {\n enumerable: true,\n get: function get() {\n return _index99.default;\n }\n});\nObject.defineProperty(exports, \"hoursToMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index100.default;\n }\n});\nObject.defineProperty(exports, \"hoursToMinutes\", {\n enumerable: true,\n get: function get() {\n return _index101.default;\n }\n});\nObject.defineProperty(exports, \"hoursToSeconds\", {\n enumerable: true,\n get: function get() {\n return _index102.default;\n }\n});\nObject.defineProperty(exports, \"intervalToDuration\", {\n enumerable: true,\n get: function get() {\n return _index103.default;\n }\n});\nObject.defineProperty(exports, \"intlFormat\", {\n enumerable: true,\n get: function get() {\n return _index104.default;\n }\n});\nObject.defineProperty(exports, \"intlFormatDistance\", {\n enumerable: true,\n get: function get() {\n return _index105.default;\n }\n});\nObject.defineProperty(exports, \"isAfter\", {\n enumerable: true,\n get: function get() {\n return _index106.default;\n }\n});\nObject.defineProperty(exports, \"isBefore\", {\n enumerable: true,\n get: function get() {\n return _index107.default;\n }\n});\nObject.defineProperty(exports, \"isDate\", {\n enumerable: true,\n get: function get() {\n return _index108.default;\n }\n});\nObject.defineProperty(exports, \"isEqual\", {\n enumerable: true,\n get: function get() {\n return _index109.default;\n }\n});\nObject.defineProperty(exports, \"isExists\", {\n enumerable: true,\n get: function get() {\n return _index110.default;\n }\n});\nObject.defineProperty(exports, \"isFirstDayOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index111.default;\n }\n});\nObject.defineProperty(exports, \"isFriday\", {\n enumerable: true,\n get: function get() {\n return _index112.default;\n }\n});\nObject.defineProperty(exports, \"isFuture\", {\n enumerable: true,\n get: function get() {\n return _index113.default;\n }\n});\nObject.defineProperty(exports, \"isLastDayOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index114.default;\n }\n});\nObject.defineProperty(exports, \"isLeapYear\", {\n enumerable: true,\n get: function get() {\n return _index115.default;\n }\n});\nObject.defineProperty(exports, \"isMatch\", {\n enumerable: true,\n get: function get() {\n return _index116.default;\n }\n});\nObject.defineProperty(exports, \"isMonday\", {\n enumerable: true,\n get: function get() {\n return _index117.default;\n }\n});\nObject.defineProperty(exports, \"isPast\", {\n enumerable: true,\n get: function get() {\n return _index118.default;\n }\n});\nObject.defineProperty(exports, \"isSameDay\", {\n enumerable: true,\n get: function get() {\n return _index119.default;\n }\n});\nObject.defineProperty(exports, \"isSameHour\", {\n enumerable: true,\n get: function get() {\n return _index120.default;\n }\n});\nObject.defineProperty(exports, \"isSameISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index121.default;\n }\n});\nObject.defineProperty(exports, \"isSameISOWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index122.default;\n }\n});\nObject.defineProperty(exports, \"isSameMinute\", {\n enumerable: true,\n get: function get() {\n return _index123.default;\n }\n});\nObject.defineProperty(exports, \"isSameMonth\", {\n enumerable: true,\n get: function get() {\n return _index124.default;\n }\n});\nObject.defineProperty(exports, \"isSameQuarter\", {\n enumerable: true,\n get: function get() {\n return _index125.default;\n }\n});\nObject.defineProperty(exports, \"isSameSecond\", {\n enumerable: true,\n get: function get() {\n return _index126.default;\n }\n});\nObject.defineProperty(exports, \"isSameWeek\", {\n enumerable: true,\n get: function get() {\n return _index127.default;\n }\n});\nObject.defineProperty(exports, \"isSameYear\", {\n enumerable: true,\n get: function get() {\n return _index128.default;\n }\n});\nObject.defineProperty(exports, \"isSaturday\", {\n enumerable: true,\n get: function get() {\n return _index129.default;\n }\n});\nObject.defineProperty(exports, \"isSunday\", {\n enumerable: true,\n get: function get() {\n return _index130.default;\n }\n});\nObject.defineProperty(exports, \"isThisHour\", {\n enumerable: true,\n get: function get() {\n return _index131.default;\n }\n});\nObject.defineProperty(exports, \"isThisISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index132.default;\n }\n});\nObject.defineProperty(exports, \"isThisMinute\", {\n enumerable: true,\n get: function get() {\n return _index133.default;\n }\n});\nObject.defineProperty(exports, \"isThisMonth\", {\n enumerable: true,\n get: function get() {\n return _index134.default;\n }\n});\nObject.defineProperty(exports, \"isThisQuarter\", {\n enumerable: true,\n get: function get() {\n return _index135.default;\n }\n});\nObject.defineProperty(exports, \"isThisSecond\", {\n enumerable: true,\n get: function get() {\n return _index136.default;\n }\n});\nObject.defineProperty(exports, \"isThisWeek\", {\n enumerable: true,\n get: function get() {\n return _index137.default;\n }\n});\nObject.defineProperty(exports, \"isThisYear\", {\n enumerable: true,\n get: function get() {\n return _index138.default;\n }\n});\nObject.defineProperty(exports, \"isThursday\", {\n enumerable: true,\n get: function get() {\n return _index139.default;\n }\n});\nObject.defineProperty(exports, \"isToday\", {\n enumerable: true,\n get: function get() {\n return _index140.default;\n }\n});\nObject.defineProperty(exports, \"isTomorrow\", {\n enumerable: true,\n get: function get() {\n return _index141.default;\n }\n});\nObject.defineProperty(exports, \"isTuesday\", {\n enumerable: true,\n get: function get() {\n return _index142.default;\n }\n});\nObject.defineProperty(exports, \"isValid\", {\n enumerable: true,\n get: function get() {\n return _index143.default;\n }\n});\nObject.defineProperty(exports, \"isWednesday\", {\n enumerable: true,\n get: function get() {\n return _index144.default;\n }\n});\nObject.defineProperty(exports, \"isWeekend\", {\n enumerable: true,\n get: function get() {\n return _index145.default;\n }\n});\nObject.defineProperty(exports, \"isWithinInterval\", {\n enumerable: true,\n get: function get() {\n return _index146.default;\n }\n});\nObject.defineProperty(exports, \"isYesterday\", {\n enumerable: true,\n get: function get() {\n return _index147.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfDecade\", {\n enumerable: true,\n get: function get() {\n return _index148.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index149.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfISOWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index150.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index151.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfQuarter\", {\n enumerable: true,\n get: function get() {\n return _index152.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfWeek\", {\n enumerable: true,\n get: function get() {\n return _index153.default;\n }\n});\nObject.defineProperty(exports, \"lastDayOfYear\", {\n enumerable: true,\n get: function get() {\n return _index154.default;\n }\n});\nObject.defineProperty(exports, \"lightFormat\", {\n enumerable: true,\n get: function get() {\n return _index155.default;\n }\n});\nObject.defineProperty(exports, \"max\", {\n enumerable: true,\n get: function get() {\n return _index156.default;\n }\n});\nObject.defineProperty(exports, \"milliseconds\", {\n enumerable: true,\n get: function get() {\n return _index157.default;\n }\n});\nObject.defineProperty(exports, \"millisecondsToHours\", {\n enumerable: true,\n get: function get() {\n return _index158.default;\n }\n});\nObject.defineProperty(exports, \"millisecondsToMinutes\", {\n enumerable: true,\n get: function get() {\n return _index159.default;\n }\n});\nObject.defineProperty(exports, \"millisecondsToSeconds\", {\n enumerable: true,\n get: function get() {\n return _index160.default;\n }\n});\nObject.defineProperty(exports, \"min\", {\n enumerable: true,\n get: function get() {\n return _index161.default;\n }\n});\nObject.defineProperty(exports, \"minutesToHours\", {\n enumerable: true,\n get: function get() {\n return _index162.default;\n }\n});\nObject.defineProperty(exports, \"minutesToMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index163.default;\n }\n});\nObject.defineProperty(exports, \"minutesToSeconds\", {\n enumerable: true,\n get: function get() {\n return _index164.default;\n }\n});\nObject.defineProperty(exports, \"monthsToQuarters\", {\n enumerable: true,\n get: function get() {\n return _index165.default;\n }\n});\nObject.defineProperty(exports, \"monthsToYears\", {\n enumerable: true,\n get: function get() {\n return _index166.default;\n }\n});\nObject.defineProperty(exports, \"nextDay\", {\n enumerable: true,\n get: function get() {\n return _index167.default;\n }\n});\nObject.defineProperty(exports, \"nextFriday\", {\n enumerable: true,\n get: function get() {\n return _index168.default;\n }\n});\nObject.defineProperty(exports, \"nextMonday\", {\n enumerable: true,\n get: function get() {\n return _index169.default;\n }\n});\nObject.defineProperty(exports, \"nextSaturday\", {\n enumerable: true,\n get: function get() {\n return _index170.default;\n }\n});\nObject.defineProperty(exports, \"nextSunday\", {\n enumerable: true,\n get: function get() {\n return _index171.default;\n }\n});\nObject.defineProperty(exports, \"nextThursday\", {\n enumerable: true,\n get: function get() {\n return _index172.default;\n }\n});\nObject.defineProperty(exports, \"nextTuesday\", {\n enumerable: true,\n get: function get() {\n return _index173.default;\n }\n});\nObject.defineProperty(exports, \"nextWednesday\", {\n enumerable: true,\n get: function get() {\n return _index174.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _index175.default;\n }\n});\nObject.defineProperty(exports, \"parseISO\", {\n enumerable: true,\n get: function get() {\n return _index176.default;\n }\n});\nObject.defineProperty(exports, \"parseJSON\", {\n enumerable: true,\n get: function get() {\n return _index177.default;\n }\n});\nObject.defineProperty(exports, \"previousDay\", {\n enumerable: true,\n get: function get() {\n return _index178.default;\n }\n});\nObject.defineProperty(exports, \"previousFriday\", {\n enumerable: true,\n get: function get() {\n return _index179.default;\n }\n});\nObject.defineProperty(exports, \"previousMonday\", {\n enumerable: true,\n get: function get() {\n return _index180.default;\n }\n});\nObject.defineProperty(exports, \"previousSaturday\", {\n enumerable: true,\n get: function get() {\n return _index181.default;\n }\n});\nObject.defineProperty(exports, \"previousSunday\", {\n enumerable: true,\n get: function get() {\n return _index182.default;\n }\n});\nObject.defineProperty(exports, \"previousThursday\", {\n enumerable: true,\n get: function get() {\n return _index183.default;\n }\n});\nObject.defineProperty(exports, \"previousTuesday\", {\n enumerable: true,\n get: function get() {\n return _index184.default;\n }\n});\nObject.defineProperty(exports, \"previousWednesday\", {\n enumerable: true,\n get: function get() {\n return _index185.default;\n }\n});\nObject.defineProperty(exports, \"quartersToMonths\", {\n enumerable: true,\n get: function get() {\n return _index186.default;\n }\n});\nObject.defineProperty(exports, \"quartersToYears\", {\n enumerable: true,\n get: function get() {\n return _index187.default;\n }\n});\nObject.defineProperty(exports, \"roundToNearestMinutes\", {\n enumerable: true,\n get: function get() {\n return _index188.default;\n }\n});\nObject.defineProperty(exports, \"secondsToHours\", {\n enumerable: true,\n get: function get() {\n return _index189.default;\n }\n});\nObject.defineProperty(exports, \"secondsToMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index190.default;\n }\n});\nObject.defineProperty(exports, \"secondsToMinutes\", {\n enumerable: true,\n get: function get() {\n return _index191.default;\n }\n});\nObject.defineProperty(exports, \"set\", {\n enumerable: true,\n get: function get() {\n return _index192.default;\n }\n});\nObject.defineProperty(exports, \"setDate\", {\n enumerable: true,\n get: function get() {\n return _index193.default;\n }\n});\nObject.defineProperty(exports, \"setDay\", {\n enumerable: true,\n get: function get() {\n return _index194.default;\n }\n});\nObject.defineProperty(exports, \"setDayOfYear\", {\n enumerable: true,\n get: function get() {\n return _index195.default;\n }\n});\nObject.defineProperty(exports, \"setDefaultOptions\", {\n enumerable: true,\n get: function get() {\n return _index196.default;\n }\n});\nObject.defineProperty(exports, \"setHours\", {\n enumerable: true,\n get: function get() {\n return _index197.default;\n }\n});\nObject.defineProperty(exports, \"setISODay\", {\n enumerable: true,\n get: function get() {\n return _index198.default;\n }\n});\nObject.defineProperty(exports, \"setISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index199.default;\n }\n});\nObject.defineProperty(exports, \"setISOWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index200.default;\n }\n});\nObject.defineProperty(exports, \"setMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index201.default;\n }\n});\nObject.defineProperty(exports, \"setMinutes\", {\n enumerable: true,\n get: function get() {\n return _index202.default;\n }\n});\nObject.defineProperty(exports, \"setMonth\", {\n enumerable: true,\n get: function get() {\n return _index203.default;\n }\n});\nObject.defineProperty(exports, \"setQuarter\", {\n enumerable: true,\n get: function get() {\n return _index204.default;\n }\n});\nObject.defineProperty(exports, \"setSeconds\", {\n enumerable: true,\n get: function get() {\n return _index205.default;\n }\n});\nObject.defineProperty(exports, \"setWeek\", {\n enumerable: true,\n get: function get() {\n return _index206.default;\n }\n});\nObject.defineProperty(exports, \"setWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index207.default;\n }\n});\nObject.defineProperty(exports, \"setYear\", {\n enumerable: true,\n get: function get() {\n return _index208.default;\n }\n});\nObject.defineProperty(exports, \"startOfDay\", {\n enumerable: true,\n get: function get() {\n return _index209.default;\n }\n});\nObject.defineProperty(exports, \"startOfDecade\", {\n enumerable: true,\n get: function get() {\n return _index210.default;\n }\n});\nObject.defineProperty(exports, \"startOfHour\", {\n enumerable: true,\n get: function get() {\n return _index211.default;\n }\n});\nObject.defineProperty(exports, \"startOfISOWeek\", {\n enumerable: true,\n get: function get() {\n return _index212.default;\n }\n});\nObject.defineProperty(exports, \"startOfISOWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index213.default;\n }\n});\nObject.defineProperty(exports, \"startOfMinute\", {\n enumerable: true,\n get: function get() {\n return _index214.default;\n }\n});\nObject.defineProperty(exports, \"startOfMonth\", {\n enumerable: true,\n get: function get() {\n return _index215.default;\n }\n});\nObject.defineProperty(exports, \"startOfQuarter\", {\n enumerable: true,\n get: function get() {\n return _index216.default;\n }\n});\nObject.defineProperty(exports, \"startOfSecond\", {\n enumerable: true,\n get: function get() {\n return _index217.default;\n }\n});\nObject.defineProperty(exports, \"startOfToday\", {\n enumerable: true,\n get: function get() {\n return _index218.default;\n }\n});\nObject.defineProperty(exports, \"startOfTomorrow\", {\n enumerable: true,\n get: function get() {\n return _index219.default;\n }\n});\nObject.defineProperty(exports, \"startOfWeek\", {\n enumerable: true,\n get: function get() {\n return _index220.default;\n }\n});\nObject.defineProperty(exports, \"startOfWeekYear\", {\n enumerable: true,\n get: function get() {\n return _index221.default;\n }\n});\nObject.defineProperty(exports, \"startOfYear\", {\n enumerable: true,\n get: function get() {\n return _index222.default;\n }\n});\nObject.defineProperty(exports, \"startOfYesterday\", {\n enumerable: true,\n get: function get() {\n return _index223.default;\n }\n});\nObject.defineProperty(exports, \"sub\", {\n enumerable: true,\n get: function get() {\n return _index224.default;\n }\n});\nObject.defineProperty(exports, \"subBusinessDays\", {\n enumerable: true,\n get: function get() {\n return _index225.default;\n }\n});\nObject.defineProperty(exports, \"subDays\", {\n enumerable: true,\n get: function get() {\n return _index226.default;\n }\n});\nObject.defineProperty(exports, \"subHours\", {\n enumerable: true,\n get: function get() {\n return _index227.default;\n }\n});\nObject.defineProperty(exports, \"subISOWeekYears\", {\n enumerable: true,\n get: function get() {\n return _index228.default;\n }\n});\nObject.defineProperty(exports, \"subMilliseconds\", {\n enumerable: true,\n get: function get() {\n return _index229.default;\n }\n});\nObject.defineProperty(exports, \"subMinutes\", {\n enumerable: true,\n get: function get() {\n return _index230.default;\n }\n});\nObject.defineProperty(exports, \"subMonths\", {\n enumerable: true,\n get: function get() {\n return _index231.default;\n }\n});\nObject.defineProperty(exports, \"subQuarters\", {\n enumerable: true,\n get: function get() {\n return _index232.default;\n }\n});\nObject.defineProperty(exports, \"subSeconds\", {\n enumerable: true,\n get: function get() {\n return _index233.default;\n }\n});\nObject.defineProperty(exports, \"subWeeks\", {\n enumerable: true,\n get: function get() {\n return _index234.default;\n }\n});\nObject.defineProperty(exports, \"subYears\", {\n enumerable: true,\n get: function get() {\n return _index235.default;\n }\n});\nObject.defineProperty(exports, \"toDate\", {\n enumerable: true,\n get: function get() {\n return _index236.default;\n }\n});\nObject.defineProperty(exports, \"weeksToDays\", {\n enumerable: true,\n get: function get() {\n return _index237.default;\n }\n});\nObject.defineProperty(exports, \"yearsToMonths\", {\n enumerable: true,\n get: function get() {\n return _index238.default;\n }\n});\nObject.defineProperty(exports, \"yearsToQuarters\", {\n enumerable: true,\n get: function get() {\n return _index239.default;\n }\n});\nvar _index = _interopRequireDefault(require(\"./add/index.js\"));\nvar _index2 = _interopRequireDefault(require(\"./addBusinessDays/index.js\"));\nvar _index3 = _interopRequireDefault(require(\"./addDays/index.js\"));\nvar _index4 = _interopRequireDefault(require(\"./addHours/index.js\"));\nvar _index5 = _interopRequireDefault(require(\"./addISOWeekYears/index.js\"));\nvar _index6 = _interopRequireDefault(require(\"./addMilliseconds/index.js\"));\nvar _index7 = _interopRequireDefault(require(\"./addMinutes/index.js\"));\nvar _index8 = _interopRequireDefault(require(\"./addMonths/index.js\"));\nvar _index9 = _interopRequireDefault(require(\"./addQuarters/index.js\"));\nvar _index10 = _interopRequireDefault(require(\"./addSeconds/index.js\"));\nvar _index11 = _interopRequireDefault(require(\"./addWeeks/index.js\"));\nvar _index12 = _interopRequireDefault(require(\"./addYears/index.js\"));\nvar _index13 = _interopRequireDefault(require(\"./areIntervalsOverlapping/index.js\"));\nvar _index14 = _interopRequireDefault(require(\"./clamp/index.js\"));\nvar _index15 = _interopRequireDefault(require(\"./closestIndexTo/index.js\"));\nvar _index16 = _interopRequireDefault(require(\"./closestTo/index.js\"));\nvar _index17 = _interopRequireDefault(require(\"./compareAsc/index.js\"));\nvar _index18 = _interopRequireDefault(require(\"./compareDesc/index.js\"));\nvar _index19 = _interopRequireDefault(require(\"./daysToWeeks/index.js\"));\nvar _index20 = _interopRequireDefault(require(\"./differenceInBusinessDays/index.js\"));\nvar _index21 = _interopRequireDefault(require(\"./differenceInCalendarDays/index.js\"));\nvar _index22 = _interopRequireDefault(require(\"./differenceInCalendarISOWeekYears/index.js\"));\nvar _index23 = _interopRequireDefault(require(\"./differenceInCalendarISOWeeks/index.js\"));\nvar _index24 = _interopRequireDefault(require(\"./differenceInCalendarMonths/index.js\"));\nvar _index25 = _interopRequireDefault(require(\"./differenceInCalendarQuarters/index.js\"));\nvar _index26 = _interopRequireDefault(require(\"./differenceInCalendarWeeks/index.js\"));\nvar _index27 = _interopRequireDefault(require(\"./differenceInCalendarYears/index.js\"));\nvar _index28 = _interopRequireDefault(require(\"./differenceInDays/index.js\"));\nvar _index29 = _interopRequireDefault(require(\"./differenceInHours/index.js\"));\nvar _index30 = _interopRequireDefault(require(\"./differenceInISOWeekYears/index.js\"));\nvar _index31 = _interopRequireDefault(require(\"./differenceInMilliseconds/index.js\"));\nvar _index32 = _interopRequireDefault(require(\"./differenceInMinutes/index.js\"));\nvar _index33 = _interopRequireDefault(require(\"./differenceInMonths/index.js\"));\nvar _index34 = _interopRequireDefault(require(\"./differenceInQuarters/index.js\"));\nvar _index35 = _interopRequireDefault(require(\"./differenceInSeconds/index.js\"));\nvar _index36 = _interopRequireDefault(require(\"./differenceInWeeks/index.js\"));\nvar _index37 = _interopRequireDefault(require(\"./differenceInYears/index.js\"));\nvar _index38 = _interopRequireDefault(require(\"./eachDayOfInterval/index.js\"));\nvar _index39 = _interopRequireDefault(require(\"./eachHourOfInterval/index.js\"));\nvar _index40 = _interopRequireDefault(require(\"./eachMinuteOfInterval/index.js\"));\nvar _index41 = _interopRequireDefault(require(\"./eachMonthOfInterval/index.js\"));\nvar _index42 = _interopRequireDefault(require(\"./eachQuarterOfInterval/index.js\"));\nvar _index43 = _interopRequireDefault(require(\"./eachWeekOfInterval/index.js\"));\nvar _index44 = _interopRequireDefault(require(\"./eachWeekendOfInterval/index.js\"));\nvar _index45 = _interopRequireDefault(require(\"./eachWeekendOfMonth/index.js\"));\nvar _index46 = _interopRequireDefault(require(\"./eachWeekendOfYear/index.js\"));\nvar _index47 = _interopRequireDefault(require(\"./eachYearOfInterval/index.js\"));\nvar _index48 = _interopRequireDefault(require(\"./endOfDay/index.js\"));\nvar _index49 = _interopRequireDefault(require(\"./endOfDecade/index.js\"));\nvar _index50 = _interopRequireDefault(require(\"./endOfHour/index.js\"));\nvar _index51 = _interopRequireDefault(require(\"./endOfISOWeek/index.js\"));\nvar _index52 = _interopRequireDefault(require(\"./endOfISOWeekYear/index.js\"));\nvar _index53 = _interopRequireDefault(require(\"./endOfMinute/index.js\"));\nvar _index54 = _interopRequireDefault(require(\"./endOfMonth/index.js\"));\nvar _index55 = _interopRequireDefault(require(\"./endOfQuarter/index.js\"));\nvar _index56 = _interopRequireDefault(require(\"./endOfSecond/index.js\"));\nvar _index57 = _interopRequireDefault(require(\"./endOfToday/index.js\"));\nvar _index58 = _interopRequireDefault(require(\"./endOfTomorrow/index.js\"));\nvar _index59 = _interopRequireDefault(require(\"./endOfWeek/index.js\"));\nvar _index60 = _interopRequireDefault(require(\"./endOfYear/index.js\"));\nvar _index61 = _interopRequireDefault(require(\"./endOfYesterday/index.js\"));\nvar _index62 = _interopRequireDefault(require(\"./format/index.js\"));\nvar _index63 = _interopRequireDefault(require(\"./formatDistance/index.js\"));\nvar _index64 = _interopRequireDefault(require(\"./formatDistanceStrict/index.js\"));\nvar _index65 = _interopRequireDefault(require(\"./formatDistanceToNow/index.js\"));\nvar _index66 = _interopRequireDefault(require(\"./formatDistanceToNowStrict/index.js\"));\nvar _index67 = _interopRequireDefault(require(\"./formatDuration/index.js\"));\nvar _index68 = _interopRequireDefault(require(\"./formatISO/index.js\"));\nvar _index69 = _interopRequireDefault(require(\"./formatISO9075/index.js\"));\nvar _index70 = _interopRequireDefault(require(\"./formatISODuration/index.js\"));\nvar _index71 = _interopRequireDefault(require(\"./formatRFC3339/index.js\"));\nvar _index72 = _interopRequireDefault(require(\"./formatRFC7231/index.js\"));\nvar _index73 = _interopRequireDefault(require(\"./formatRelative/index.js\"));\nvar _index74 = _interopRequireDefault(require(\"./fromUnixTime/index.js\"));\nvar _index75 = _interopRequireDefault(require(\"./getDate/index.js\"));\nvar _index76 = _interopRequireDefault(require(\"./getDay/index.js\"));\nvar _index77 = _interopRequireDefault(require(\"./getDayOfYear/index.js\"));\nvar _index78 = _interopRequireDefault(require(\"./getDaysInMonth/index.js\"));\nvar _index79 = _interopRequireDefault(require(\"./getDaysInYear/index.js\"));\nvar _index80 = _interopRequireDefault(require(\"./getDecade/index.js\"));\nvar _index81 = _interopRequireDefault(require(\"./getDefaultOptions/index.js\"));\nvar _index82 = _interopRequireDefault(require(\"./getHours/index.js\"));\nvar _index83 = _interopRequireDefault(require(\"./getISODay/index.js\"));\nvar _index84 = _interopRequireDefault(require(\"./getISOWeek/index.js\"));\nvar _index85 = _interopRequireDefault(require(\"./getISOWeekYear/index.js\"));\nvar _index86 = _interopRequireDefault(require(\"./getISOWeeksInYear/index.js\"));\nvar _index87 = _interopRequireDefault(require(\"./getMilliseconds/index.js\"));\nvar _index88 = _interopRequireDefault(require(\"./getMinutes/index.js\"));\nvar _index89 = _interopRequireDefault(require(\"./getMonth/index.js\"));\nvar _index90 = _interopRequireDefault(require(\"./getOverlappingDaysInIntervals/index.js\"));\nvar _index91 = _interopRequireDefault(require(\"./getQuarter/index.js\"));\nvar _index92 = _interopRequireDefault(require(\"./getSeconds/index.js\"));\nvar _index93 = _interopRequireDefault(require(\"./getTime/index.js\"));\nvar _index94 = _interopRequireDefault(require(\"./getUnixTime/index.js\"));\nvar _index95 = _interopRequireDefault(require(\"./getWeek/index.js\"));\nvar _index96 = _interopRequireDefault(require(\"./getWeekOfMonth/index.js\"));\nvar _index97 = _interopRequireDefault(require(\"./getWeekYear/index.js\"));\nvar _index98 = _interopRequireDefault(require(\"./getWeeksInMonth/index.js\"));\nvar _index99 = _interopRequireDefault(require(\"./getYear/index.js\"));\nvar _index100 = _interopRequireDefault(require(\"./hoursToMilliseconds/index.js\"));\nvar _index101 = _interopRequireDefault(require(\"./hoursToMinutes/index.js\"));\nvar _index102 = _interopRequireDefault(require(\"./hoursToSeconds/index.js\"));\nvar _index103 = _interopRequireDefault(require(\"./intervalToDuration/index.js\"));\nvar _index104 = _interopRequireDefault(require(\"./intlFormat/index.js\"));\nvar _index105 = _interopRequireDefault(require(\"./intlFormatDistance/index.js\"));\nvar _index106 = _interopRequireDefault(require(\"./isAfter/index.js\"));\nvar _index107 = _interopRequireDefault(require(\"./isBefore/index.js\"));\nvar _index108 = _interopRequireDefault(require(\"./isDate/index.js\"));\nvar _index109 = _interopRequireDefault(require(\"./isEqual/index.js\"));\nvar _index110 = _interopRequireDefault(require(\"./isExists/index.js\"));\nvar _index111 = _interopRequireDefault(require(\"./isFirstDayOfMonth/index.js\"));\nvar _index112 = _interopRequireDefault(require(\"./isFriday/index.js\"));\nvar _index113 = _interopRequireDefault(require(\"./isFuture/index.js\"));\nvar _index114 = _interopRequireDefault(require(\"./isLastDayOfMonth/index.js\"));\nvar _index115 = _interopRequireDefault(require(\"./isLeapYear/index.js\"));\nvar _index116 = _interopRequireDefault(require(\"./isMatch/index.js\"));\nvar _index117 = _interopRequireDefault(require(\"./isMonday/index.js\"));\nvar _index118 = _interopRequireDefault(require(\"./isPast/index.js\"));\nvar _index119 = _interopRequireDefault(require(\"./isSameDay/index.js\"));\nvar _index120 = _interopRequireDefault(require(\"./isSameHour/index.js\"));\nvar _index121 = _interopRequireDefault(require(\"./isSameISOWeek/index.js\"));\nvar _index122 = _interopRequireDefault(require(\"./isSameISOWeekYear/index.js\"));\nvar _index123 = _interopRequireDefault(require(\"./isSameMinute/index.js\"));\nvar _index124 = _interopRequireDefault(require(\"./isSameMonth/index.js\"));\nvar _index125 = _interopRequireDefault(require(\"./isSameQuarter/index.js\"));\nvar _index126 = _interopRequireDefault(require(\"./isSameSecond/index.js\"));\nvar _index127 = _interopRequireDefault(require(\"./isSameWeek/index.js\"));\nvar _index128 = _interopRequireDefault(require(\"./isSameYear/index.js\"));\nvar _index129 = _interopRequireDefault(require(\"./isSaturday/index.js\"));\nvar _index130 = _interopRequireDefault(require(\"./isSunday/index.js\"));\nvar _index131 = _interopRequireDefault(require(\"./isThisHour/index.js\"));\nvar _index132 = _interopRequireDefault(require(\"./isThisISOWeek/index.js\"));\nvar _index133 = _interopRequireDefault(require(\"./isThisMinute/index.js\"));\nvar _index134 = _interopRequireDefault(require(\"./isThisMonth/index.js\"));\nvar _index135 = _interopRequireDefault(require(\"./isThisQuarter/index.js\"));\nvar _index136 = _interopRequireDefault(require(\"./isThisSecond/index.js\"));\nvar _index137 = _interopRequireDefault(require(\"./isThisWeek/index.js\"));\nvar _index138 = _interopRequireDefault(require(\"./isThisYear/index.js\"));\nvar _index139 = _interopRequireDefault(require(\"./isThursday/index.js\"));\nvar _index140 = _interopRequireDefault(require(\"./isToday/index.js\"));\nvar _index141 = _interopRequireDefault(require(\"./isTomorrow/index.js\"));\nvar _index142 = _interopRequireDefault(require(\"./isTuesday/index.js\"));\nvar _index143 = _interopRequireDefault(require(\"./isValid/index.js\"));\nvar _index144 = _interopRequireDefault(require(\"./isWednesday/index.js\"));\nvar _index145 = _interopRequireDefault(require(\"./isWeekend/index.js\"));\nvar _index146 = _interopRequireDefault(require(\"./isWithinInterval/index.js\"));\nvar _index147 = _interopRequireDefault(require(\"./isYesterday/index.js\"));\nvar _index148 = _interopRequireDefault(require(\"./lastDayOfDecade/index.js\"));\nvar _index149 = _interopRequireDefault(require(\"./lastDayOfISOWeek/index.js\"));\nvar _index150 = _interopRequireDefault(require(\"./lastDayOfISOWeekYear/index.js\"));\nvar _index151 = _interopRequireDefault(require(\"./lastDayOfMonth/index.js\"));\nvar _index152 = _interopRequireDefault(require(\"./lastDayOfQuarter/index.js\"));\nvar _index153 = _interopRequireDefault(require(\"./lastDayOfWeek/index.js\"));\nvar _index154 = _interopRequireDefault(require(\"./lastDayOfYear/index.js\"));\nvar _index155 = _interopRequireDefault(require(\"./lightFormat/index.js\"));\nvar _index156 = _interopRequireDefault(require(\"./max/index.js\"));\nvar _index157 = _interopRequireDefault(require(\"./milliseconds/index.js\"));\nvar _index158 = _interopRequireDefault(require(\"./millisecondsToHours/index.js\"));\nvar _index159 = _interopRequireDefault(require(\"./millisecondsToMinutes/index.js\"));\nvar _index160 = _interopRequireDefault(require(\"./millisecondsToSeconds/index.js\"));\nvar _index161 = _interopRequireDefault(require(\"./min/index.js\"));\nvar _index162 = _interopRequireDefault(require(\"./minutesToHours/index.js\"));\nvar _index163 = _interopRequireDefault(require(\"./minutesToMilliseconds/index.js\"));\nvar _index164 = _interopRequireDefault(require(\"./minutesToSeconds/index.js\"));\nvar _index165 = _interopRequireDefault(require(\"./monthsToQuarters/index.js\"));\nvar _index166 = _interopRequireDefault(require(\"./monthsToYears/index.js\"));\nvar _index167 = _interopRequireDefault(require(\"./nextDay/index.js\"));\nvar _index168 = _interopRequireDefault(require(\"./nextFriday/index.js\"));\nvar _index169 = _interopRequireDefault(require(\"./nextMonday/index.js\"));\nvar _index170 = _interopRequireDefault(require(\"./nextSaturday/index.js\"));\nvar _index171 = _interopRequireDefault(require(\"./nextSunday/index.js\"));\nvar _index172 = _interopRequireDefault(require(\"./nextThursday/index.js\"));\nvar _index173 = _interopRequireDefault(require(\"./nextTuesday/index.js\"));\nvar _index174 = _interopRequireDefault(require(\"./nextWednesday/index.js\"));\nvar _index175 = _interopRequireDefault(require(\"./parse/index.js\"));\nvar _index176 = _interopRequireDefault(require(\"./parseISO/index.js\"));\nvar _index177 = _interopRequireDefault(require(\"./parseJSON/index.js\"));\nvar _index178 = _interopRequireDefault(require(\"./previousDay/index.js\"));\nvar _index179 = _interopRequireDefault(require(\"./previousFriday/index.js\"));\nvar _index180 = _interopRequireDefault(require(\"./previousMonday/index.js\"));\nvar _index181 = _interopRequireDefault(require(\"./previousSaturday/index.js\"));\nvar _index182 = _interopRequireDefault(require(\"./previousSunday/index.js\"));\nvar _index183 = _interopRequireDefault(require(\"./previousThursday/index.js\"));\nvar _index184 = _interopRequireDefault(require(\"./previousTuesday/index.js\"));\nvar _index185 = _interopRequireDefault(require(\"./previousWednesday/index.js\"));\nvar _index186 = _interopRequireDefault(require(\"./quartersToMonths/index.js\"));\nvar _index187 = _interopRequireDefault(require(\"./quartersToYears/index.js\"));\nvar _index188 = _interopRequireDefault(require(\"./roundToNearestMinutes/index.js\"));\nvar _index189 = _interopRequireDefault(require(\"./secondsToHours/index.js\"));\nvar _index190 = _interopRequireDefault(require(\"./secondsToMilliseconds/index.js\"));\nvar _index191 = _interopRequireDefault(require(\"./secondsToMinutes/index.js\"));\nvar _index192 = _interopRequireDefault(require(\"./set/index.js\"));\nvar _index193 = _interopRequireDefault(require(\"./setDate/index.js\"));\nvar _index194 = _interopRequireDefault(require(\"./setDay/index.js\"));\nvar _index195 = _interopRequireDefault(require(\"./setDayOfYear/index.js\"));\nvar _index196 = _interopRequireDefault(require(\"./setDefaultOptions/index.js\"));\nvar _index197 = _interopRequireDefault(require(\"./setHours/index.js\"));\nvar _index198 = _interopRequireDefault(require(\"./setISODay/index.js\"));\nvar _index199 = _interopRequireDefault(require(\"./setISOWeek/index.js\"));\nvar _index200 = _interopRequireDefault(require(\"./setISOWeekYear/index.js\"));\nvar _index201 = _interopRequireDefault(require(\"./setMilliseconds/index.js\"));\nvar _index202 = _interopRequireDefault(require(\"./setMinutes/index.js\"));\nvar _index203 = _interopRequireDefault(require(\"./setMonth/index.js\"));\nvar _index204 = _interopRequireDefault(require(\"./setQuarter/index.js\"));\nvar _index205 = _interopRequireDefault(require(\"./setSeconds/index.js\"));\nvar _index206 = _interopRequireDefault(require(\"./setWeek/index.js\"));\nvar _index207 = _interopRequireDefault(require(\"./setWeekYear/index.js\"));\nvar _index208 = _interopRequireDefault(require(\"./setYear/index.js\"));\nvar _index209 = _interopRequireDefault(require(\"./startOfDay/index.js\"));\nvar _index210 = _interopRequireDefault(require(\"./startOfDecade/index.js\"));\nvar _index211 = _interopRequireDefault(require(\"./startOfHour/index.js\"));\nvar _index212 = _interopRequireDefault(require(\"./startOfISOWeek/index.js\"));\nvar _index213 = _interopRequireDefault(require(\"./startOfISOWeekYear/index.js\"));\nvar _index214 = _interopRequireDefault(require(\"./startOfMinute/index.js\"));\nvar _index215 = _interopRequireDefault(require(\"./startOfMonth/index.js\"));\nvar _index216 = _interopRequireDefault(require(\"./startOfQuarter/index.js\"));\nvar _index217 = _interopRequireDefault(require(\"./startOfSecond/index.js\"));\nvar _index218 = _interopRequireDefault(require(\"./startOfToday/index.js\"));\nvar _index219 = _interopRequireDefault(require(\"./startOfTomorrow/index.js\"));\nvar _index220 = _interopRequireDefault(require(\"./startOfWeek/index.js\"));\nvar _index221 = _interopRequireDefault(require(\"./startOfWeekYear/index.js\"));\nvar _index222 = _interopRequireDefault(require(\"./startOfYear/index.js\"));\nvar _index223 = _interopRequireDefault(require(\"./startOfYesterday/index.js\"));\nvar _index224 = _interopRequireDefault(require(\"./sub/index.js\"));\nvar _index225 = _interopRequireDefault(require(\"./subBusinessDays/index.js\"));\nvar _index226 = _interopRequireDefault(require(\"./subDays/index.js\"));\nvar _index227 = _interopRequireDefault(require(\"./subHours/index.js\"));\nvar _index228 = _interopRequireDefault(require(\"./subISOWeekYears/index.js\"));\nvar _index229 = _interopRequireDefault(require(\"./subMilliseconds/index.js\"));\nvar _index230 = _interopRequireDefault(require(\"./subMinutes/index.js\"));\nvar _index231 = _interopRequireDefault(require(\"./subMonths/index.js\"));\nvar _index232 = _interopRequireDefault(require(\"./subQuarters/index.js\"));\nvar _index233 = _interopRequireDefault(require(\"./subSeconds/index.js\"));\nvar _index234 = _interopRequireDefault(require(\"./subWeeks/index.js\"));\nvar _index235 = _interopRequireDefault(require(\"./subYears/index.js\"));\nvar _index236 = _interopRequireDefault(require(\"./toDate/index.js\"));\nvar _index237 = _interopRequireDefault(require(\"./weeksToDays/index.js\"));\nvar _index238 = _interopRequireDefault(require(\"./yearsToMonths/index.js\"));\nvar _index239 = _interopRequireDefault(require(\"./yearsToQuarters/index.js\"));\nvar _index240 = require(\"./constants/index.js\");\nObject.keys(_index240).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index240[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _index240[key];\n }\n });\n});", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = tzIntlTimeZoneName;\n\n/**\n * Returns the formatted time zone name of the provided `timeZone` or the current\n * system time zone if omitted, accounting for DST according to the UTC value of\n * the date.\n */\nfunction tzIntlTimeZoneName(length, date, options) {\n var dtf = getDTF(length, options.timeZone, options.locale);\n return dtf.formatToParts ? partsTimeZone(dtf, date) : hackyTimeZone(dtf, date);\n}\n\nfunction partsTimeZone(dtf, date) {\n var formatted = dtf.formatToParts(date);\n\n for (var i = formatted.length - 1; i >= 0; --i) {\n if (formatted[i].type === 'timeZoneName') {\n return formatted[i].value;\n }\n }\n}\n\nfunction hackyTimeZone(dtf, date) {\n var formatted = dtf.format(date).replace(/\\u200E/g, '');\n var tzNameMatch = / [\\w-+ ]+$/.exec(formatted);\n return tzNameMatch ? tzNameMatch[0].substr(1) : '';\n} // If a locale has been provided `en-US` is used as a fallback in case it is an\n// invalid locale, otherwise the locale is left undefined to use the system locale.\n\n\nfunction getDTF(length, timeZone, locale) {\n if (locale && !locale.code) {\n throw new Error(\"date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`\");\n }\n\n return new Intl.DateTimeFormat(locale ? [locale.code, 'en-US'] : undefined, {\n timeZone: timeZone,\n timeZoneName: length\n });\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = tzTokenizeDate;\n\n/**\n * Returns the [year, month, day, hour, minute, seconds] tokens of the provided\n * `date` as it will be rendered in the `timeZone`.\n */\nfunction tzTokenizeDate(date, timeZone) {\n var dtf = getDateTimeFormat(timeZone);\n return dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date);\n}\n\nvar typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5\n};\n\nfunction partsOffset(dtf, date) {\n try {\n var formatted = dtf.formatToParts(date);\n var filled = [];\n\n for (var i = 0; i < formatted.length; i++) {\n var pos = typeToPos[formatted[i].type];\n\n if (pos >= 0) {\n filled[pos] = parseInt(formatted[i].value, 10);\n }\n }\n\n return filled;\n } catch (error) {\n if (error instanceof RangeError) {\n return [NaN];\n }\n\n throw error;\n }\n}\n\nfunction hackyOffset(dtf, date) {\n var formatted = dtf.format(date).replace(/\\u200E/g, '');\n var parsed = /(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(formatted); // var [, fMonth, fDay, fYear, fHour, fMinute, fSecond] = parsed\n // return [fYear, fMonth, fDay, fHour, fMinute, fSecond]\n\n return [parsed[3], parsed[1], parsed[2], parsed[4], parsed[5], parsed[6]];\n} // Get a cached Intl.DateTimeFormat instance for the IANA `timeZone`. This can be used\n// to get deterministic local date/time output according to the `en-US` locale which\n// can be used to extract local time parts as necessary.\n\n\nvar dtfCache = {};\n\nfunction getDateTimeFormat(timeZone) {\n if (!dtfCache[timeZone]) {\n // New browsers use `hourCycle`, IE and Chrome <73 does not support it and uses `hour12`\n var testDateFormatted = new Intl.DateTimeFormat('en-US', {\n hour12: false,\n timeZone: 'America/New_York',\n year: 'numeric',\n month: 'numeric',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit'\n }).format(new Date('2014-06-25T04:00:00.123Z'));\n var hourCycleSupported = testDateFormatted === '06/25/2014, 00:00:00' || testDateFormatted === '\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00';\n dtfCache[timeZone] = hourCycleSupported ? new Intl.DateTimeFormat('en-US', {\n hour12: false,\n timeZone: timeZone,\n year: 'numeric',\n month: 'numeric',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit'\n }) : new Intl.DateTimeFormat('en-US', {\n hourCycle: 'h23',\n timeZone: timeZone,\n year: 'numeric',\n month: 'numeric',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit'\n });\n }\n\n return dtfCache[timeZone];\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = newDateUTC;\n\n/**\n * Use instead of `new Date(Date.UTC(...))` to support years below 100 which doesn't work\n * otherwise due to the nature of the\n * [`Date` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years.\n *\n * For `Date.UTC(...)`, use `newDateUTC(...).getTime()`.\n */\nfunction newDateUTC(fullYear, month, day, hour, minute, second, millisecond) {\n var utcDate = new Date(0);\n utcDate.setUTCFullYear(fullYear, month, day);\n utcDate.setUTCHours(hour, minute, second, millisecond);\n return utcDate;\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = tzParseTimezone;\n\nvar _index = _interopRequireDefault(require(\"../tzTokenizeDate/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"../newDateUTC/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar MILLISECONDS_IN_HOUR = 3600000;\nvar MILLISECONDS_IN_MINUTE = 60000;\nvar patterns = {\n timezone: /([Z+-].*)$/,\n timezoneZ: /^(Z)$/,\n timezoneHH: /^([+-]\\d{2})$/,\n timezoneHHMM: /^([+-]\\d{2}):?(\\d{2})$/\n}; // Parse various time zone offset formats to an offset in milliseconds\n\nfunction tzParseTimezone(timezoneString, date, isUtcDate) {\n var token;\n var absoluteOffset; // Empty string\n\n if (!timezoneString) {\n return 0;\n } // Z\n\n\n token = patterns.timezoneZ.exec(timezoneString);\n\n if (token) {\n return 0;\n }\n\n var hours; // \u00B1hh\n\n token = patterns.timezoneHH.exec(timezoneString);\n\n if (token) {\n hours = parseInt(token[1], 10);\n\n if (!validateTimezone(hours)) {\n return NaN;\n }\n\n return -(hours * MILLISECONDS_IN_HOUR);\n } // \u00B1hh:mm or \u00B1hhmm\n\n\n token = patterns.timezoneHHMM.exec(timezoneString);\n\n if (token) {\n hours = parseInt(token[1], 10);\n var minutes = parseInt(token[2], 10);\n\n if (!validateTimezone(hours, minutes)) {\n return NaN;\n }\n\n absoluteOffset = Math.abs(hours) * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE;\n return hours > 0 ? -absoluteOffset : absoluteOffset;\n } // IANA time zone\n\n\n if (isValidTimezoneIANAString(timezoneString)) {\n date = new Date(date || Date.now());\n var utcDate = isUtcDate ? date : toUtcDate(date);\n var offset = calcOffset(utcDate, timezoneString);\n var fixedOffset = isUtcDate ? offset : fixOffset(date, offset, timezoneString);\n return -fixedOffset;\n }\n\n return NaN;\n}\n\nfunction toUtcDate(date) {\n return (0, _index2.default)(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n}\n\nfunction calcOffset(date, timezoneString) {\n var tokens = (0, _index.default)(date, timezoneString); // ms dropped because it's not provided by tzTokenizeDate\n\n var asUTC = (0, _index2.default)(tokens[0], tokens[1] - 1, tokens[2], tokens[3] % 24, tokens[4], tokens[5], 0).getTime();\n var asTS = date.getTime();\n var over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return asUTC - asTS;\n}\n\nfunction fixOffset(date, offset, timezoneString) {\n var localTS = date.getTime(); // Our UTC time is just a guess because our offset is just a guess\n\n var utcGuess = localTS - offset; // Test whether the zone matches the offset for this ts\n\n var o2 = calcOffset(new Date(utcGuess), timezoneString); // If so, offset didn't change, and we're done\n\n if (offset === o2) {\n return offset;\n } // If not, change the ts by the difference in the offset\n\n\n utcGuess -= o2 - offset; // If that gives us the local time we want, we're done\n\n var o3 = calcOffset(new Date(utcGuess), timezoneString);\n\n if (o2 === o3) {\n return o2;\n } // If it's different, we're in a hole time. The offset has changed, but we don't adjust the time\n\n\n return Math.max(o2, o3);\n}\n\nfunction validateTimezone(hours, minutes) {\n return -23 <= hours && hours <= 23 && (minutes == null || 0 <= minutes && minutes <= 59);\n}\n\nvar validIANATimezoneCache = {};\n\nfunction isValidTimezoneIANAString(timeZoneString) {\n if (validIANATimezoneCache[timeZoneString]) return true;\n\n try {\n new Intl.DateTimeFormat(undefined, {\n timeZone: timeZoneString\n });\n validIANATimezoneCache[timeZoneString] = true;\n return true;\n } catch (error) {\n return false;\n }\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _index = _interopRequireDefault(require(\"../../_lib/tzIntlTimeZoneName/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"../../_lib/tzParseTimezone/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar MILLISECONDS_IN_MINUTE = 60 * 1000;\nvar formatters = {\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, localize, options) {\n var timezoneOffset = getTimeZoneOffset(options.timeZone, options._originalDate || date);\n\n if (timezoneOffset === 0) {\n return 'Z';\n }\n\n switch (token) {\n // Hours and optional minutes\n case 'X':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n // Hours, minutes and optional seconds without `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n\n case 'XXXX':\n case 'XX':\n // Hours and minutes without `:` delimeter\n return formatTimezone(timezoneOffset);\n // Hours, minutes and optional seconds with `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n\n case 'XXXXX':\n case 'XXX': // Hours and minutes with `:` delimeter\n\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, localize, options) {\n var timezoneOffset = getTimeZoneOffset(options.timeZone, options._originalDate || date);\n\n switch (token) {\n // Hours and optional minutes\n case 'x':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n // Hours, minutes and optional seconds without `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n\n case 'xxxx':\n case 'xx':\n // Hours and minutes without `:` delimeter\n return formatTimezone(timezoneOffset);\n // Hours, minutes and optional seconds with `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n\n case 'xxxxx':\n case 'xxx': // Hours and minutes with `:` delimeter\n\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (GMT)\n O: function (date, token, localize, options) {\n var timezoneOffset = getTimeZoneOffset(options.timeZone, options._originalDate || date);\n\n switch (token) {\n // Short\n case 'O':\n case 'OO':\n case 'OOO':\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n // Long\n\n case 'OOOO':\n default:\n return 'GMT' + formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (specific non-location)\n z: function (date, token, localize, options) {\n var originalDate = options._originalDate || date;\n\n switch (token) {\n // Short\n case 'z':\n case 'zz':\n case 'zzz':\n return (0, _index.default)('short', originalDate, options);\n // Long\n\n case 'zzzz':\n default:\n return (0, _index.default)('long', originalDate, options);\n }\n }\n};\n\nfunction getTimeZoneOffset(timeZone, originalDate) {\n var timeZoneOffset = timeZone ? (0, _index2.default)(timeZone, originalDate, true) / MILLISECONDS_IN_MINUTE : originalDate.getTimezoneOffset();\n\n if (Number.isNaN(timeZoneOffset)) {\n throw new RangeError('Invalid time zone specified: ' + timeZone);\n }\n\n return timeZoneOffset;\n}\n\nfunction addLeadingZeros(number, targetLength) {\n var sign = number < 0 ? '-' : '';\n var output = Math.abs(number).toString();\n\n while (output.length < targetLength) {\n output = '0' + output;\n }\n\n return sign + output;\n}\n\nfunction formatTimezone(offset, dirtyDelimeter) {\n var delimeter = dirtyDelimeter || '';\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\n var minutes = addLeadingZeros(Math.floor(absOffset % 60), 2);\n return sign + hours + delimeter + minutes;\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, dirtyDelimeter) {\n if (offset % 60 === 0) {\n var sign = offset > 0 ? '-' : '+';\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n\n return formatTimezone(offset, dirtyDelimeter);\n}\n\nfunction formatTimezoneShort(offset, dirtyDelimeter) {\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = Math.floor(absOffset / 60);\n var minutes = absOffset % 60;\n\n if (minutes === 0) {\n return sign + String(hours);\n }\n\n var delimeter = dirtyDelimeter || '';\n return sign + String(hours) + delimeter + addLeadingZeros(minutes, 2);\n}\n\nvar _default = formatters;\nexports.default = _default;\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n/** Regex to identify the presence of a time zone specifier in a date string */\nvar tzPattern = /(Z|[+-]\\d{2}(?::?\\d{2})?| UTC| [a-zA-Z]+\\/[a-zA-Z_]+(?:\\/[a-zA-Z_]+)?)$/;\nvar _default = tzPattern;\nexports.default = _default;\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toDate;\n\nvar _index = _interopRequireDefault(require(\"date-fns/_lib/toInteger/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js\"));\n\nvar _index3 = _interopRequireDefault(require(\"../_lib/tzParseTimezone/index.js\"));\n\nvar _index4 = _interopRequireDefault(require(\"../_lib/tzPattern/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar MILLISECONDS_IN_HOUR = 3600000;\nvar MILLISECONDS_IN_MINUTE = 60000;\nvar DEFAULT_ADDITIONAL_DIGITS = 2;\nvar patterns = {\n dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,\n datePattern: /^([0-9W+-]+)(.*)/,\n plainTime: /:/,\n // year tokens\n YY: /^(\\d{2})$/,\n YYY: [/^([+-]\\d{2})$/, // 0 additional digits\n /^([+-]\\d{3})$/, // 1 additional digit\n /^([+-]\\d{4})$/ // 2 additional digits\n ],\n YYYY: /^(\\d{4})/,\n YYYYY: [/^([+-]\\d{4})/, // 0 additional digits\n /^([+-]\\d{5})/, // 1 additional digit\n /^([+-]\\d{6})/ // 2 additional digits\n ],\n // date tokens\n MM: /^-(\\d{2})$/,\n DDD: /^-?(\\d{3})$/,\n MMDD: /^-?(\\d{2})-?(\\d{2})$/,\n Www: /^-?W(\\d{2})$/,\n WwwD: /^-?W(\\d{2})-?(\\d{1})$/,\n HH: /^(\\d{2}([.,]\\d*)?)$/,\n HHMM: /^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n HHMMSS: /^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n // time zone tokens (to identify the presence of a tz)\n timeZone: _index4.default\n};\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If an argument is a string, the function tries to parse it.\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n * If the function cannot parse the string or the values are invalid, it returns Invalid Date.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n * All *date-fns* functions will throw `RangeError` if `options.additionalDigits` is not 0, 1, 2 or undefined.\n *\n * @param {Date|String|Number} argument - the value to convert\n * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @param {String} [options.timeZone=''] - used to specify the IANA time zone offset of a date String.\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * var result = toDate('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * var result = toDate('+02014101', {additionalDigits: 1})\n * //=> Fri Apr 11 2014 00:00:00\n */\n\nfunction toDate(argument, dirtyOptions) {\n if (arguments.length < 1) {\n throw new TypeError('1 argument required, but only ' + arguments.length + ' present');\n }\n\n if (argument === null) {\n return new Date(NaN);\n }\n\n var options = dirtyOptions || {};\n var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : (0, _index.default)(options.additionalDigits);\n\n if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n throw new RangeError('additionalDigits must be 0, 1 or 2');\n } // Clone the date\n\n\n if (argument instanceof Date || typeof argument === 'object' && Object.prototype.toString.call(argument) === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || Object.prototype.toString.call(argument) === '[object Number]') {\n return new Date(argument);\n } else if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {\n return new Date(NaN);\n }\n\n var dateStrings = splitDateString(argument);\n var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n var year = parseYearResult.year;\n var restDateString = parseYearResult.restDateString;\n var date = parseDate(restDateString, year);\n\n if (isNaN(date)) {\n return new Date(NaN);\n }\n\n if (date) {\n var timestamp = date.getTime();\n var time = 0;\n var offset;\n\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n\n if (isNaN(time)) {\n return new Date(NaN);\n }\n }\n\n if (dateStrings.timeZone || options.timeZone) {\n offset = (0, _index3.default)(dateStrings.timeZone || options.timeZone, new Date(timestamp + time));\n\n if (isNaN(offset)) {\n return new Date(NaN);\n }\n } else {\n // get offset accurate to hour in time zones that change offset\n offset = (0, _index2.default)(new Date(timestamp + time));\n offset = (0, _index2.default)(new Date(timestamp + time + offset));\n }\n\n return new Date(timestamp + time + offset);\n } else {\n return new Date(NaN);\n }\n}\n\nfunction splitDateString(dateString) {\n var dateStrings = {};\n var parts = patterns.dateTimePattern.exec(dateString);\n var timeString;\n\n if (!parts) {\n parts = patterns.datePattern.exec(dateString);\n\n if (parts) {\n dateStrings.date = parts[1];\n timeString = parts[2];\n } else {\n dateStrings.date = null;\n timeString = dateString;\n }\n } else {\n dateStrings.date = parts[1];\n timeString = parts[3];\n }\n\n if (timeString) {\n var token = patterns.timeZone.exec(timeString);\n\n if (token) {\n dateStrings.time = timeString.replace(token[1], '');\n dateStrings.timeZone = token[1].trim();\n } else {\n dateStrings.time = timeString;\n }\n }\n\n return dateStrings;\n}\n\nfunction parseYear(dateString, additionalDigits) {\n var patternYYY = patterns.YYY[additionalDigits];\n var patternYYYYY = patterns.YYYYY[additionalDigits];\n var token; // YYYY or \u00B1YYYYY\n\n token = patterns.YYYY.exec(dateString) || patternYYYYY.exec(dateString);\n\n if (token) {\n var yearString = token[1];\n return {\n year: parseInt(yearString, 10),\n restDateString: dateString.slice(yearString.length)\n };\n } // YY or \u00B1YYY\n\n\n token = patterns.YY.exec(dateString) || patternYYY.exec(dateString);\n\n if (token) {\n var centuryString = token[1];\n return {\n year: parseInt(centuryString, 10) * 100,\n restDateString: dateString.slice(centuryString.length)\n };\n } // Invalid ISO-formatted year\n\n\n return {\n year: null\n };\n}\n\nfunction parseDate(dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) {\n return null;\n }\n\n var token;\n var date;\n var month;\n var week; // YYYY\n\n if (dateString.length === 0) {\n date = new Date(0);\n date.setUTCFullYear(year);\n return date;\n } // YYYY-MM\n\n\n token = patterns.MM.exec(dateString);\n\n if (token) {\n date = new Date(0);\n month = parseInt(token[1], 10) - 1;\n\n if (!validateDate(year, month)) {\n return new Date(NaN);\n }\n\n date.setUTCFullYear(year, month);\n return date;\n } // YYYY-DDD or YYYYDDD\n\n\n token = patterns.DDD.exec(dateString);\n\n if (token) {\n date = new Date(0);\n var dayOfYear = parseInt(token[1], 10);\n\n if (!validateDayOfYearDate(year, dayOfYear)) {\n return new Date(NaN);\n }\n\n date.setUTCFullYear(year, 0, dayOfYear);\n return date;\n } // yyyy-MM-dd or YYYYMMDD\n\n\n token = patterns.MMDD.exec(dateString);\n\n if (token) {\n date = new Date(0);\n month = parseInt(token[1], 10) - 1;\n var day = parseInt(token[2], 10);\n\n if (!validateDate(year, month, day)) {\n return new Date(NaN);\n }\n\n date.setUTCFullYear(year, month, day);\n return date;\n } // YYYY-Www or YYYYWww\n\n\n token = patterns.Www.exec(dateString);\n\n if (token) {\n week = parseInt(token[1], 10) - 1;\n\n if (!validateWeekDate(year, week)) {\n return new Date(NaN);\n }\n\n return dayOfISOWeekYear(year, week);\n } // YYYY-Www-D or YYYYWwwD\n\n\n token = patterns.WwwD.exec(dateString);\n\n if (token) {\n week = parseInt(token[1], 10) - 1;\n var dayOfWeek = parseInt(token[2], 10) - 1;\n\n if (!validateWeekDate(year, week, dayOfWeek)) {\n return new Date(NaN);\n }\n\n return dayOfISOWeekYear(year, week, dayOfWeek);\n } // Invalid ISO-formatted date\n\n\n return null;\n}\n\nfunction parseTime(timeString) {\n var token;\n var hours;\n var minutes; // hh\n\n token = patterns.HH.exec(timeString);\n\n if (token) {\n hours = parseFloat(token[1].replace(',', '.'));\n\n if (!validateTime(hours)) {\n return NaN;\n }\n\n return hours % 24 * MILLISECONDS_IN_HOUR;\n } // hh:mm or hhmm\n\n\n token = patterns.HHMM.exec(timeString);\n\n if (token) {\n hours = parseInt(token[1], 10);\n minutes = parseFloat(token[2].replace(',', '.'));\n\n if (!validateTime(hours, minutes)) {\n return NaN;\n }\n\n return hours % 24 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE;\n } // hh:mm:ss or hhmmss\n\n\n token = patterns.HHMMSS.exec(timeString);\n\n if (token) {\n hours = parseInt(token[1], 10);\n minutes = parseInt(token[2], 10);\n var seconds = parseFloat(token[3].replace(',', '.'));\n\n if (!validateTime(hours, minutes, seconds)) {\n return NaN;\n }\n\n return hours % 24 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * 1000;\n } // Invalid ISO-formatted time\n\n\n return null;\n}\n\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n week = week || 0;\n day = day || 0;\n var date = new Date(0);\n date.setUTCFullYear(isoWeekYear, 0, 4);\n var fourthOfJanuaryDay = date.getUTCDay() || 7;\n var diff = week * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n} // Validation functions\n\n\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nvar DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\n\nfunction validateDate(year, month, date) {\n if (month < 0 || month > 11) {\n return false;\n }\n\n if (date != null) {\n if (date < 1) {\n return false;\n }\n\n var isLeapYear = isLeapYearIndex(year);\n\n if (isLeapYear && date > DAYS_IN_MONTH_LEAP_YEAR[month]) {\n return false;\n }\n\n if (!isLeapYear && date > DAYS_IN_MONTH[month]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction validateDayOfYearDate(year, dayOfYear) {\n if (dayOfYear < 1) {\n return false;\n }\n\n var isLeapYear = isLeapYearIndex(year);\n\n if (isLeapYear && dayOfYear > 366) {\n return false;\n }\n\n if (!isLeapYear && dayOfYear > 365) {\n return false;\n }\n\n return true;\n}\n\nfunction validateWeekDate(year, week, day) {\n if (week < 0 || week > 52) {\n return false;\n }\n\n if (day != null && (day < 0 || day > 6)) {\n return false;\n }\n\n return true;\n}\n\nfunction validateTime(hours, minutes, seconds) {\n if (hours != null && (hours < 0 || hours >= 25)) {\n return false;\n }\n\n if (minutes != null && (minutes < 0 || minutes >= 60)) {\n return false;\n }\n\n if (seconds != null && (seconds < 0 || seconds >= 60)) {\n return false;\n }\n\n return true;\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = format;\n\nvar _index = _interopRequireDefault(require(\"date-fns/format/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"./formatters/index.js\"));\n\nvar _index3 = _interopRequireDefault(require(\"../toDate/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar tzFormattingTokensRegExp = /([xXOz]+)|''|'(''|[^'])+('|$)/g;\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > \u26A0\uFE0F Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://git.io/fxCyr\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 8 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 8 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Su | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Su | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Su | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Su | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | AM, PM | a..aaa | AM, PM | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bbb | AM, PM, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 1, 2, ..., 11, 0 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 0001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | PDT, EST, CEST | 6 |\n * | | zzzz | Pacific Daylight Time | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 05/29/1453 | 7 |\n * | | PP | May 29, 1453 | 7 |\n * | | PPP | May 29th, 1453 | 7 |\n * | | PPPP | Sunday, May 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 05/29/1453, 12:00 AM | 7 |\n * | | PPpp | May 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | May 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Sunday, May 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\n * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\n *\n * 6. Specific non-location timezones are created using the Intl browser API. The output is determined by the\n * preferred standard of the current locale (en-US by default) which may not always give the expected result.\n * For this reason it is recommended to supply a `locale` in the format options when formatting a time zone name.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. These tokens are often confused with others. See: https://git.io/fxCyr\n *\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole\n * library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The second argument is now required for the sake of explicitness.\n *\n * ```javascript\n * // Before v2.0.0\n * format(new Date(2016, 0, 1))\n *\n * // v2.0.0 onward\n * format(new Date(2016, 0, 1), \"yyyy-MM-dd'T'HH:mm:ss.SSSxxx\")\n * ```\n *\n * - New format string API for `format` function\n * which is based on [Unicode Technical Standard\n * #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). See [this\n * post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.\n *\n * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.\n *\n * @param {Date|Number} date - the original date\n * @param {String} format - the string of tokens\n * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link\n * https://date-fns.org/docs/toDate}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See\n * [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {Boolean} [options.awareOfUnicodeTokens=false] - if true, allows usage of Unicode tokens causes confusion:\n * - Some of the day of year tokens (`D`, `DD`) that are confused with the day of month tokens (`d`, `dd`).\n * - Some of the local week-numbering year tokens (`YY`, `YYYY`) that are confused with the calendar year tokens\n * (`yy`, `yyyy`). See: https://git.io/fxCyr\n * @param {String} [options.timeZone=''] - used to specify the IANA time zone offset of a date String.\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} `options.awareOfUnicodeTokens` must be set to `true` to use `XX` token; see:\n * https://git.io/fxCyr\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * var result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * var result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\n\nfunction format(dirtyDate, dirtyFormatStr, dirtyOptions) {\n var formatStr = String(dirtyFormatStr);\n var options = dirtyOptions || {};\n var matches = formatStr.match(tzFormattingTokensRegExp);\n\n if (matches) {\n var date = (0, _index3.default)(dirtyDate, options); // Work through each match and replace the tz token in the format string with the quoted\n // formatted time zone so the remaining tokens can be filled in by date-fns#format.\n\n formatStr = matches.reduce(function (result, token) {\n if (token[0] === \"'\") {\n return result; // This is a quoted portion, matched only to ensure we don't match inside it\n }\n\n var pos = result.indexOf(token);\n var precededByQuotedSection = result[pos - 1] === \"'\";\n var replaced = result.replace(token, \"'\" + _index2.default[token[0]](date, token, null, options) + \"'\"); // If the replacement results in two adjoining quoted strings, the back to back quotes\n // are removed, so it doesn't look like an escaped quote.\n\n return precededByQuotedSection ? replaced.substring(0, pos - 1) + replaced.substring(pos + 1) : replaced;\n }, formatStr);\n }\n\n return (0, _index.default)(dirtyDate, formatStr, options);\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = utcToZonedTime;\n\nvar _index = _interopRequireDefault(require(\"../_lib/tzParseTimezone/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * @name utcToZonedTime\n * @category Time Zone Helpers\n * @summary Get a date/time representing local time in a given time zone from the UTC date\n *\n * @description\n * Returns a date instance with values representing the local time in the time zone\n * specified of the UTC time from the date provided. In other words, when the new date\n * is formatted it will show the equivalent hours in the target time zone regardless\n * of the current system time zone.\n *\n * @param {Date|String|Number} date - the date with the relevant UTC time\n * @param {String} timeZone - the time zone to get local time for, can be an offset or IANA time zone\n * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Date} the new date with the equivalent time in the time zone\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // In June 10am UTC is 6am in New York (-04:00)\n * const result = utcToZonedTime('2014-06-25T10:00:00.000Z', 'America/New_York')\n * //=> Jun 25 2014 06:00:00\n */\nfunction utcToZonedTime(dirtyDate, timeZone, options) {\n var date = (0, _index2.default)(dirtyDate, options);\n var offsetMilliseconds = (0, _index.default)(timeZone, date, true);\n var d = new Date(date.getTime() - offsetMilliseconds);\n var resultDate = new Date(0);\n resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());\n resultDate.setHours(d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());\n return resultDate;\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatInTimeZone;\n\nvar _index = _interopRequireDefault(require(\"date-fns/_lib/cloneObject/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"../format/index.js\"));\n\nvar _index3 = _interopRequireDefault(require(\"../utcToZonedTime/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * @name formatInTimeZone\n * @category Time Zone Helpers\n * @summary Gets the offset in milliseconds between the time zone and Universal Coordinated Time (UTC)\n *\n * @param {Date|String|Number} date - the date representing the local time / real UTC time\n * @param {String} timeZone - the time zone this date should be formatted for; can be an offset or IANA time zone\n * @param {String} formatStr - the string of tokens\n * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link\n * https://date-fns.org/docs/toDate}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See\n * [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {Boolean} [options.awareOfUnicodeTokens=false] - if true, allows usage of Unicode tokens causes confusion:\n * - Some of the day of year tokens (`D`, `DD`) that are confused with the day of month tokens (`d`, `dd`).\n * - Some of the local week-numbering year tokens (`YY`, `YYYY`) that are confused with the calendar year tokens\n * (`yy`, `yyyy`). See: https://git.io/fxCyr\n * @param {String} [options.timeZone=''] - used to specify the IANA time zone offset of a date String.\n * @returns {String} the formatted date string\n */\nfunction formatInTimeZone(date, timeZone, formatStr, options) {\n var extendedOptions = (0, _index.default)(options);\n extendedOptions.timeZone = timeZone;\n return (0, _index2.default)((0, _index3.default)(date, timeZone), formatStr, extendedOptions);\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getTimezoneOffset;\n\nvar _index = _interopRequireDefault(require(\"../_lib/tzParseTimezone/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * @name getTimezoneOffset\n * @category Time Zone Helpers\n * @summary Gets the offset in milliseconds between the time zone and Universal Coordinated Time (UTC)\n *\n * @description\n * Returns the time zone offset from UTC time in milliseconds for IANA time zones as well\n * as other time zone offset string formats.\n *\n * For time zones where daylight savings time is applicable a `Date` should be passed on\n * the second parameter to ensure the offset correctly accounts for DST at that time of\n * year. When omitted, the current date is used.\n *\n * @param {String} timeZone - the time zone of this local time, can be an offset or IANA time zone\n * @param {Date|Number} [date] - the date with values representing the local time\n * @returns {Number} the time zone offset in milliseconds\n *\n * @example\n * const result = getTimezoneOffset('-07:00')\n * //=> -18000000 (-7 * 60 * 60 * 1000)\n * const result = getTimezoneOffset('Africa/Johannesburg')\n * //=> 7200000 (2 * 60 * 60 * 1000)\n * const result = getTimezoneOffset('America/New_York', new Date(2016, 0, 1))\n * //=> -18000000 (-5 * 60 * 60 * 1000)\n * const result = getTimezoneOffset('America/New_York', new Date(2016, 6, 1))\n * //=> -14400000 (-4 * 60 * 60 * 1000)\n */\nfunction getTimezoneOffset(timeZone, date) {\n return -(0, _index.default)(timeZone, date);\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = zonedTimeToUtc;\n\nvar _index = _interopRequireDefault(require(\"date-fns/_lib/cloneObject/index.js\"));\n\nvar _index2 = _interopRequireDefault(require(\"../toDate/index.js\"));\n\nvar _index3 = _interopRequireDefault(require(\"../_lib/tzPattern/index.js\"));\n\nvar _index4 = _interopRequireDefault(require(\"../_lib/tzParseTimezone/index.js\"));\n\nvar _index5 = _interopRequireDefault(require(\"../_lib/newDateUTC/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * @name zonedTimeToUtc\n * @category Time Zone Helpers\n * @summary Get the UTC date/time from a date representing local time in a given time zone\n *\n * @description\n * Returns a date instance with the UTC time of the provided date of which the values\n * represented the local time in the time zone specified. In other words, if the input\n * date represented local time in time time zone, the timestamp of the output date will\n * give the equivalent UTC of that local time regardless of the current system time zone.\n *\n * @param {Date|String|Number} date - the date with values representing the local time\n * @param {String} timeZone - the time zone of this local time, can be an offset or IANA time zone\n * @param {OptionsWithTZ} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Date} the new date with the equivalent time in the time zone\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // In June 10am in Los Angeles is 5pm UTC\n * const result = zonedTimeToUtc(new Date(2014, 5, 25, 10, 0, 0), 'America/Los_Angeles')\n * //=> 2014-06-25T17:00:00.000Z\n */\nfunction zonedTimeToUtc(date, timeZone, options) {\n if (typeof date === 'string' && !date.match(_index3.default)) {\n var extendedOptions = (0, _index.default)(options);\n extendedOptions.timeZone = timeZone;\n return (0, _index2.default)(date, extendedOptions);\n }\n\n var d = (0, _index2.default)(date, options);\n var utc = (0, _index5.default)(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds(), d.getMilliseconds()).getTime();\n var offsetMilliseconds = (0, _index4.default)(timeZone, new Date(utc));\n return new Date(utc + offsetMilliseconds);\n}\n\nmodule.exports = exports.default;", "\"use strict\";\n\n// This file is generated automatically by `scripts/build/indices.js`. Please, don't change it.\nmodule.exports = {\n format: require('./format/index.js'),\n formatInTimeZone: require('./formatInTimeZone/index.js'),\n getTimezoneOffset: require('./getTimezoneOffset/index.js'),\n toDate: require('./toDate/index.js'),\n utcToZonedTime: require('./utcToZonedTime/index.js'),\n zonedTimeToUtc: require('./zonedTimeToUtc/index.js')\n};", "'use client';\nimport ReactExports, { createContext, useContext, useRef, createElement, useReducer, useEffect, useDebugValue, useCallback } from 'react';\nimport { getDefaultStore, createStore } from 'jotai/vanilla';\n\nconst StoreContext = createContext(\n void 0\n);\nconst useStore = (options) => {\n const store = useContext(StoreContext);\n return (options == null ? void 0 : options.store) || store || getDefaultStore();\n};\nconst Provider = ({\n children,\n store\n}) => {\n const storeRef = useRef();\n if (!store && !storeRef.current) {\n storeRef.current = createStore();\n }\n return createElement(\n StoreContext.Provider,\n {\n value: store || storeRef.current\n },\n children\n );\n};\n\nconst isPromiseLike = (x) => typeof (x == null ? void 0 : x.then) === \"function\";\nconst use = ReactExports.use || ((promise) => {\n if (promise.status === \"pending\") {\n throw promise;\n } else if (promise.status === \"fulfilled\") {\n return promise.value;\n } else if (promise.status === \"rejected\") {\n throw promise.reason;\n } else {\n promise.status = \"pending\";\n promise.then(\n (v) => {\n promise.status = \"fulfilled\";\n promise.value = v;\n },\n (e) => {\n promise.status = \"rejected\";\n promise.reason = e;\n }\n );\n throw promise;\n }\n});\nfunction useAtomValue(atom, options) {\n const store = useStore(options);\n const [[valueFromReducer, storeFromReducer, atomFromReducer], rerender] = useReducer(\n (prev) => {\n const nextValue = store.get(atom);\n if (Object.is(prev[0], nextValue) && prev[1] === store && prev[2] === atom) {\n return prev;\n }\n return [nextValue, store, atom];\n },\n void 0,\n () => [store.get(atom), store, atom]\n );\n let value = valueFromReducer;\n if (storeFromReducer !== store || atomFromReducer !== atom) {\n rerender();\n value = store.get(atom);\n }\n const delay = options == null ? void 0 : options.delay;\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n if (typeof delay === \"number\") {\n setTimeout(rerender, delay);\n return;\n }\n rerender();\n });\n rerender();\n return unsub;\n }, [store, atom, delay]);\n useDebugValue(value);\n return isPromiseLike(value) ? use(value) : value;\n}\n\nfunction useSetAtom(atom, options) {\n const store = useStore(options);\n const setAtom = useCallback(\n (...args) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !(\"write\" in atom)) {\n throw new Error(\"not writable atom\");\n }\n return store.set(atom, ...args);\n },\n [store, atom]\n );\n return setAtom;\n}\n\nfunction useAtom(atom, options) {\n return [\n useAtomValue(atom, options),\n // We do wrong type assertion here, which results in throwing an error.\n useSetAtom(atom, options)\n ];\n}\n\nexport { Provider, useAtom, useAtomValue, useSetAtom, useStore };\n", "let keyCount = 0;\nfunction atom(read, write) {\n const key = `atom${++keyCount}`;\n const config = {\n toString() {\n return (import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && this.debugLabel ? key + \":\" + this.debugLabel : key;\n }\n };\n if (typeof read === \"function\") {\n config.read = read;\n } else {\n config.init = read;\n config.read = defaultRead;\n config.write = defaultWrite;\n }\n if (write) {\n config.write = write;\n }\n return config;\n}\nfunction defaultRead(get) {\n return get(this);\n}\nfunction defaultWrite(get, set, arg) {\n return set(\n this,\n typeof arg === \"function\" ? arg(get(this)) : arg\n );\n}\n\nconst isSelfAtom = (atom, a) => atom.unstable_is ? atom.unstable_is(a) : a === atom;\nconst hasInitialValue = (atom) => \"init\" in atom;\nconst isActuallyWritableAtom = (atom) => !!atom.write;\nconst CONTINUE_PROMISE = Symbol(\n (import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" ? \"CONTINUE_PROMISE\" : \"\"\n);\nconst PENDING = \"pending\";\nconst FULFILLED = \"fulfilled\";\nconst REJECTED = \"rejected\";\nconst isContinuablePromise = (promise) => typeof promise === \"object\" && promise !== null && CONTINUE_PROMISE in promise;\nconst continuablePromiseMap = /* @__PURE__ */ new WeakMap();\nconst createContinuablePromise = (promise, abort, complete) => {\n if (!continuablePromiseMap.has(promise)) {\n let continuePromise;\n const p = new Promise((resolve, reject) => {\n let curr = promise;\n const onFulfilled = (me) => (v) => {\n if (curr === me) {\n p.status = FULFILLED;\n p.value = v;\n resolve(v);\n complete();\n }\n };\n const onRejected = (me) => (e) => {\n if (curr === me) {\n p.status = REJECTED;\n p.reason = e;\n reject(e);\n complete();\n }\n };\n promise.then(onFulfilled(promise), onRejected(promise));\n continuePromise = (nextPromise, nextAbort) => {\n if (nextPromise) {\n continuablePromiseMap.set(nextPromise, p);\n curr = nextPromise;\n nextPromise.then(onFulfilled(nextPromise), onRejected(nextPromise));\n abort();\n abort = nextAbort;\n }\n };\n });\n p.status = PENDING;\n p[CONTINUE_PROMISE] = continuePromise;\n continuablePromiseMap.set(promise, p);\n }\n return continuablePromiseMap.get(promise);\n};\nconst isPromiseLike = (x) => typeof (x == null ? void 0 : x.then) === \"function\";\nconst isAtomStateInitialized = (atomState) => \"v\" in atomState || \"e\" in atomState;\nconst returnAtomValue = (atomState) => {\n if (\"e\" in atomState) {\n throw atomState.e;\n }\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !(\"v\" in atomState)) {\n throw new Error(\"[Bug] atom state is not initialized\");\n }\n return atomState.v;\n};\nconst getPendingContinuablePromise = (atomState) => {\n const value = atomState.v;\n if (isContinuablePromise(value) && value.status === PENDING) {\n return value;\n }\n return null;\n};\nconst addPendingContinuablePromiseToDependency = (atom, promise, dependencyAtomState) => {\n if (!dependencyAtomState.p.has(atom)) {\n dependencyAtomState.p.add(atom);\n promise.then(\n () => {\n dependencyAtomState.p.delete(atom);\n },\n () => {\n dependencyAtomState.p.delete(atom);\n }\n );\n }\n};\nconst addDependency = (pending, atom, atomState, a, aState) => {\n var _a;\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && a === atom) {\n throw new Error(\"[Bug] atom cannot depend on itself\");\n }\n atomState.d.set(a, aState.n);\n const continuablePromise = getPendingContinuablePromise(atomState);\n if (continuablePromise) {\n addPendingContinuablePromiseToDependency(atom, continuablePromise, aState);\n }\n (_a = aState.m) == null ? void 0 : _a.t.add(atom);\n if (pending) {\n addPendingDependent(pending, a, atom);\n }\n};\nconst createPending = () => [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), /* @__PURE__ */ new Set()];\nconst addPendingAtom = (pending, atom, atomState) => {\n if (!pending[0].has(atom)) {\n pending[0].set(atom, /* @__PURE__ */ new Set());\n }\n pending[1].set(atom, atomState);\n};\nconst addPendingDependent = (pending, atom, dependent) => {\n const dependents = pending[0].get(atom);\n if (dependents) {\n dependents.add(dependent);\n }\n};\nconst getPendingDependents = (pending, atom) => pending[0].get(atom);\nconst addPendingFunction = (pending, fn) => {\n pending[2].add(fn);\n};\nconst flushPending = (pending) => {\n while (pending[1].size || pending[2].size) {\n pending[0].clear();\n const atomStates = new Set(pending[1].values());\n pending[1].clear();\n const functions = new Set(pending[2]);\n pending[2].clear();\n atomStates.forEach((atomState) => {\n var _a;\n return (_a = atomState.m) == null ? void 0 : _a.l.forEach((l) => l());\n });\n functions.forEach((fn) => fn());\n }\n};\nconst buildStore = (getAtomState) => {\n let debugMountedAtoms;\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n debugMountedAtoms = /* @__PURE__ */ new Set();\n }\n const setAtomStateValueOrPromise = (atom, atomState, valueOrPromise, abortPromise = () => {\n }, completePromise = () => {\n }) => {\n const hasPrevValue = \"v\" in atomState;\n const prevValue = atomState.v;\n const pendingPromise = getPendingContinuablePromise(atomState);\n if (isPromiseLike(valueOrPromise)) {\n if (pendingPromise) {\n if (pendingPromise !== valueOrPromise) {\n pendingPromise[CONTINUE_PROMISE](valueOrPromise, abortPromise);\n ++atomState.n;\n }\n } else {\n const continuablePromise = createContinuablePromise(\n valueOrPromise,\n abortPromise,\n completePromise\n );\n if (continuablePromise.status === PENDING) {\n for (const a of atomState.d.keys()) {\n addPendingContinuablePromiseToDependency(\n atom,\n continuablePromise,\n getAtomState(a, atomState)\n );\n }\n }\n atomState.v = continuablePromise;\n delete atomState.e;\n }\n } else {\n if (pendingPromise) {\n pendingPromise[CONTINUE_PROMISE](\n Promise.resolve(valueOrPromise),\n abortPromise\n );\n }\n atomState.v = valueOrPromise;\n delete atomState.e;\n }\n if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {\n ++atomState.n;\n }\n };\n const readAtomState = (pending, atom, atomState, force) => {\n if (!(force == null ? void 0 : force(atom)) && isAtomStateInitialized(atomState)) {\n if (atomState.m) {\n return atomState;\n }\n if (Array.from(atomState.d).every(\n ([a, n]) => (\n // Recursively, read the atom state of the dependency, and\n // check if the atom epoch number is unchanged\n readAtomState(pending, a, getAtomState(a, atomState), force).n === n\n )\n )) {\n return atomState;\n }\n }\n atomState.d.clear();\n let isSync = true;\n const getter = (a) => {\n if (isSelfAtom(atom, a)) {\n const aState2 = getAtomState(a, atomState);\n if (!isAtomStateInitialized(aState2)) {\n if (hasInitialValue(a)) {\n setAtomStateValueOrPromise(a, aState2, a.init);\n } else {\n throw new Error(\"no atom init\");\n }\n }\n return returnAtomValue(aState2);\n }\n const aState = readAtomState(\n pending,\n a,\n getAtomState(a, atomState),\n force\n );\n if (isSync) {\n addDependency(pending, atom, atomState, a, aState);\n } else {\n const pending2 = createPending();\n addDependency(pending2, atom, atomState, a, aState);\n mountDependencies(pending2, atom, atomState);\n flushPending(pending2);\n }\n return returnAtomValue(aState);\n };\n let controller;\n let setSelf;\n const options = {\n get signal() {\n if (!controller) {\n controller = new AbortController();\n }\n return controller.signal;\n },\n get setSelf() {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !isActuallyWritableAtom(atom)) {\n console.warn(\"setSelf function cannot be used with read-only atom\");\n }\n if (!setSelf && isActuallyWritableAtom(atom)) {\n setSelf = (...args) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && isSync) {\n console.warn(\"setSelf function cannot be called in sync\");\n }\n if (!isSync) {\n return writeAtom(atom, ...args);\n }\n };\n }\n return setSelf;\n }\n };\n try {\n const valueOrPromise = atom.read(getter, options);\n setAtomStateValueOrPromise(\n atom,\n atomState,\n valueOrPromise,\n () => controller == null ? void 0 : controller.abort(),\n () => {\n if (atomState.m) {\n const pending2 = createPending();\n mountDependencies(pending2, atom, atomState);\n flushPending(pending2);\n }\n }\n );\n return atomState;\n } catch (error) {\n delete atomState.v;\n atomState.e = error;\n ++atomState.n;\n return atomState;\n } finally {\n isSync = false;\n }\n };\n const readAtom = (atom) => returnAtomValue(readAtomState(void 0, atom, getAtomState(atom)));\n const getDependents = (pending, atom, atomState) => {\n var _a, _b;\n const dependents = /* @__PURE__ */ new Map();\n for (const a of ((_a = atomState.m) == null ? void 0 : _a.t) || []) {\n dependents.set(a, getAtomState(a, atomState));\n }\n for (const atomWithPendingContinuablePromise of atomState.p) {\n dependents.set(\n atomWithPendingContinuablePromise,\n getAtomState(atomWithPendingContinuablePromise, atomState)\n );\n }\n (_b = getPendingDependents(pending, atom)) == null ? void 0 : _b.forEach((dependent) => {\n dependents.set(dependent, getAtomState(dependent, atomState));\n });\n return dependents;\n };\n const recomputeDependents = (pending, atom, atomState) => {\n const topsortedAtoms = [];\n const markedAtoms = /* @__PURE__ */ new Set();\n const visit = (a, aState) => {\n if (markedAtoms.has(a)) {\n return;\n }\n markedAtoms.add(a);\n for (const [d, s] of getDependents(pending, a, aState)) {\n if (a !== d) {\n visit(d, s);\n }\n }\n topsortedAtoms.push([a, aState, aState.n]);\n };\n visit(atom, atomState);\n const changedAtoms = /* @__PURE__ */ new Set([atom]);\n const isMarked = (a) => markedAtoms.has(a);\n for (let i = topsortedAtoms.length - 1; i >= 0; --i) {\n const [a, aState, prevEpochNumber] = topsortedAtoms[i];\n let hasChangedDeps = false;\n for (const dep of aState.d.keys()) {\n if (dep !== a && changedAtoms.has(dep)) {\n hasChangedDeps = true;\n break;\n }\n }\n if (hasChangedDeps) {\n readAtomState(pending, a, aState, isMarked);\n mountDependencies(pending, a, aState);\n if (prevEpochNumber !== aState.n) {\n addPendingAtom(pending, a, aState);\n changedAtoms.add(a);\n }\n }\n markedAtoms.delete(a);\n }\n };\n const writeAtomState = (pending, atom, atomState, ...args) => {\n const getter = (a) => returnAtomValue(readAtomState(pending, a, getAtomState(a, atomState)));\n const setter = (a, ...args2) => {\n const aState = getAtomState(a, atomState);\n let r;\n if (isSelfAtom(atom, a)) {\n if (!hasInitialValue(a)) {\n throw new Error(\"atom not writable\");\n }\n const hasPrevValue = \"v\" in aState;\n const prevValue = aState.v;\n const v = args2[0];\n setAtomStateValueOrPromise(a, aState, v);\n mountDependencies(pending, a, aState);\n if (!hasPrevValue || !Object.is(prevValue, aState.v)) {\n addPendingAtom(pending, a, aState);\n recomputeDependents(pending, a, aState);\n }\n } else {\n r = writeAtomState(pending, a, aState, ...args2);\n }\n flushPending(pending);\n return r;\n };\n const result = atom.write(getter, setter, ...args);\n return result;\n };\n const writeAtom = (atom, ...args) => {\n const pending = createPending();\n const result = writeAtomState(pending, atom, getAtomState(atom), ...args);\n flushPending(pending);\n return result;\n };\n const mountDependencies = (pending, atom, atomState) => {\n if (atomState.m && !getPendingContinuablePromise(atomState)) {\n for (const a of atomState.d.keys()) {\n if (!atomState.m.d.has(a)) {\n const aMounted = mountAtom(pending, a, getAtomState(a, atomState));\n aMounted.t.add(atom);\n atomState.m.d.add(a);\n }\n }\n for (const a of atomState.m.d || []) {\n if (!atomState.d.has(a)) {\n atomState.m.d.delete(a);\n const aMounted = unmountAtom(pending, a, getAtomState(a, atomState));\n aMounted == null ? void 0 : aMounted.t.delete(atom);\n }\n }\n }\n };\n const mountAtom = (pending, atom, atomState) => {\n if (!atomState.m) {\n readAtomState(pending, atom, atomState);\n for (const a of atomState.d.keys()) {\n const aMounted = mountAtom(pending, a, getAtomState(a, atomState));\n aMounted.t.add(atom);\n }\n atomState.m = {\n l: /* @__PURE__ */ new Set(),\n d: new Set(atomState.d.keys()),\n t: /* @__PURE__ */ new Set()\n };\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n debugMountedAtoms.add(atom);\n }\n if (isActuallyWritableAtom(atom) && atom.onMount) {\n const mounted = atomState.m;\n const { onMount } = atom;\n addPendingFunction(pending, () => {\n const onUnmount = onMount(\n (...args) => writeAtomState(pending, atom, atomState, ...args)\n );\n if (onUnmount) {\n mounted.u = onUnmount;\n }\n });\n }\n }\n return atomState.m;\n };\n const unmountAtom = (pending, atom, atomState) => {\n if (atomState.m && !atomState.m.l.size && !Array.from(atomState.m.t).some(\n (a) => {\n var _a;\n return (_a = getAtomState(a, atomState).m) == null ? void 0 : _a.d.has(atom);\n }\n )) {\n const onUnmount = atomState.m.u;\n if (onUnmount) {\n addPendingFunction(pending, onUnmount);\n }\n delete atomState.m;\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n debugMountedAtoms.delete(atom);\n }\n for (const a of atomState.d.keys()) {\n const aMounted = unmountAtom(pending, a, getAtomState(a, atomState));\n aMounted == null ? void 0 : aMounted.t.delete(atom);\n }\n const pendingPromise = getPendingContinuablePromise(atomState);\n if (pendingPromise) {\n pendingPromise[CONTINUE_PROMISE](void 0, () => {\n });\n }\n return void 0;\n }\n return atomState.m;\n };\n const subscribeAtom = (atom, listener) => {\n const pending = createPending();\n const atomState = getAtomState(atom);\n const mounted = mountAtom(pending, atom, atomState);\n flushPending(pending);\n const listeners = mounted.l;\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n const pending2 = createPending();\n unmountAtom(pending2, atom, atomState);\n flushPending(pending2);\n };\n };\n const unstable_derive = (fn) => buildStore(...fn(getAtomState));\n const store = {\n get: readAtom,\n set: writeAtom,\n sub: subscribeAtom,\n unstable_derive\n };\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n const devStore = {\n // store dev methods (these are tentative and subject to change without notice)\n dev4_get_internal_weak_map: () => ({\n get: (atom) => {\n const atomState = getAtomState(atom);\n if (atomState.n === 0) {\n return void 0;\n }\n return atomState;\n }\n }),\n dev4_get_mounted_atoms: () => debugMountedAtoms,\n dev4_restore_atoms: (values) => {\n const pending = createPending();\n for (const [atom, value] of values) {\n if (hasInitialValue(atom)) {\n const atomState = getAtomState(atom);\n const hasPrevValue = \"v\" in atomState;\n const prevValue = atomState.v;\n setAtomStateValueOrPromise(atom, atomState, value);\n mountDependencies(pending, atom, atomState);\n if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {\n addPendingAtom(pending, atom, atomState);\n recomputeDependents(pending, atom, atomState);\n }\n }\n }\n flushPending(pending);\n }\n };\n Object.assign(store, devStore);\n }\n return store;\n};\nconst createStore = () => {\n const atomStateMap = /* @__PURE__ */ new WeakMap();\n const getAtomState = (atom) => {\n let atomState = atomStateMap.get(atom);\n if (!atomState) {\n atomState = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 };\n atomStateMap.set(atom, atomState);\n }\n return atomState;\n };\n return buildStore(getAtomState);\n};\nlet defaultStore;\nconst getDefaultStore = () => {\n if (!defaultStore) {\n defaultStore = createStore();\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = defaultStore);\n if (globalThis.__JOTAI_DEFAULT_STORE__ !== defaultStore) {\n console.warn(\n \"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044\"\n );\n }\n }\n }\n return defaultStore;\n};\n\nexport { atom, createStore, getDefaultStore };\n", "import * as jotai from 'jotai'\nimport * as React from 'react'\n\nimport * as api from '@owl-nest/api-client/next'\nimport * as env from './env/base.ts'\nimport { lens } from './lens.ts'\nimport { getCookie } from '@owl-nest/cookie-helper'\n\nexport type UserConfig = {\n lang: api.Lang\n currency: string\n}\n\nlet INITIALIZED = false\nconst USER_CONFIG_ATOM = jotai.atom({\n lang: env.DEFAULT_LOCALE,\n currency: env.DEFAULT_CURRENCY,\n})\n\nexport async function initUserConfig(): Promise {\n if (!INITIALIZED) {\n INITIALIZED = true\n\n const userLocale = getUserLocale() ?? env.DEFAULT_LOCALE\n const userCurrency = getUserCurrency() ?? env.DEFAULT_CURRENCY\n\n const store = jotai.getDefaultStore()\n\n store.set(USER_CONFIG_ATOM, {\n lang: userLocale,\n currency: userCurrency,\n })\n }\n}\n\nexport function getUserConfig(): UserConfig {\n const store = jotai.getDefaultStore()\n initUserConfig()\n return store.get(USER_CONFIG_ATOM)\n}\n\nexport function useUserEnv() {\n const config = jotai.useAtomValue(USER_CONFIG_ATOM)\n\n React.useEffect(() => {\n initUserConfig()\n }, [])\n\n return config\n}\n\nexport function getUserLocale(): api.Lang | undefined {\n const ufeUserLocale = lens()\n .get('UFE')\n .get('locale')\n .value(globalThis, { silent: true, forgive: true, trust: true })\n if (ufeUserLocale !== undefined) {\n return ufeUserLocale\n }\n\n const cookieUserLocale = getCookie(env.USER_LANG_COOKIE_NAME)\n if (cookieUserLocale !== undefined && env.LANGS.includes(cookieUserLocale)) {\n return cookieUserLocale as api.Lang\n }\n\n if (typeof window === 'undefined') {\n return env.DEFAULT_LOCALE\n }\n\n const subdomain = window.location.host.split('.')[0]\n\n const locale = (Object.keys(env.I18N_SUBDOMAINS) as api.Lang[]).find((locale) => {\n env.I18N_SUBDOMAINS[locale] === subdomain\n })\n\n return locale\n}\n\nexport function getUserCurrency() {\n const ufeUserCurrency = lens()\n .get('CURRENCIES')\n .get('CURRENT')\n .value(globalThis, { silent: true, forgive: true, trust: true })\n if (ufeUserCurrency !== undefined) {\n return ufeUserCurrency\n }\n\n const cookieUserCurrency = getCookie(env.USER_CURRENCY_COOKIE_NAME)\n return cookieUserCurrency\n}\n", "import * as supports from '@owl-nest/feature-detection'\n\nconst CACHE = new Map()\n\nexport function getGroupSeparator(locale: string): string {\n if (CACHE.has(locale)) {\n return CACHE.get(locale)!\n }\n\n if (supports.numberFormat() && supports.numberFormatToParts()) {\n const numberWithGroupSeparator = 1000\n const parts = new Intl.NumberFormat(locale).formatToParts(numberWithGroupSeparator)\n const groupSeparatorPart = parts.find((part) => part.type === 'group')\n\n const result = groupSeparatorPart ? groupSeparatorPart.value : ''\n CACHE.set(locale, result)\n return result\n }\n\n console.log('Unsupported NumberFormatToParts')\n CACHE.set(locale, '')\n return ''\n}\n\nexport function format(\n amount: number,\n locale: string,\n options?: {\n decimal?: string\n thousand?: string\n precision?: number\n },\n) {\n if (supports.intlNumberFormat() && supports.numberFormat()) {\n const precision = options?.precision !== undefined ? options.precision : Number.isInteger(amount) ? 0 : 2\n\n const formatter = new Intl.NumberFormat(locale, {\n minimumFractionDigits: precision,\n maximumFractionDigits: precision,\n useGrouping: true,\n ...options,\n })\n\n return formatter.format(amount)\n }\n\n console.log('Unsupported NumberFormat')\n return amount\n}\n\nexport function formatCompact(value: number, locale: string) {\n if (supports.intlNumberFormat() && supports.numberFormat()) {\n return new Intl.NumberFormat(locale, {\n notation: 'compact',\n maximumFractionDigits: 1,\n }).format(value)\n }\n console.log('Unsupported NumberFormat')\n return value\n}\n", "type Params = {\n [id: string]: boolean | number | string\n}\n\nfunction buildSearchParams(params: Params): string {\n return Object.keys(params)\n .map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))\n .join('&')\n}\n\nexport function addSearchParamsToUrl(baseUrl: string, params: Params): string {\n if (!params) return baseUrl\n\n const character = !baseUrl.includes('?') ? '?' : '&'\n return `${baseUrl}${character}${buildSearchParams(params)}`\n}\n", "import * as env from '@owl-nest/config'\n\n/**\n * Capitalize a given string\n * @param str The string to capitalize\n */\nexport function capitalize(str = ''): string {\n return str.charAt(0).toUpperCase() + str.slice(1)\n}\n\n// Strip tags content\nexport function stripTags(str = ''): string {\n return str.replace(/(<([^>]+)>)/gi, '')\n}\n\n// Truncate content\nexport function truncate(text = '', limit = 10): string {\n const str = text.trim()\n\n if (str.length <= limit) {\n return str\n }\n\n return `${str.substring(0, limit)}...`\n}\n\n// Localize number and return defaultValue is undefined or null\n// NOTE: We replace space separator characters with a space (U+0020) character since some locales (e.g. 'fr-FR') use thin space (U+2009), which renders a visually unsatisfying result.\nexport function numberToLocaleString(value: number, defaultValue = '0'): string {\n return value ? value.toLocaleString(env.getUserConfig().lang).replace(/\\s/g, ' ') : defaultValue\n}\n\nexport function slugify(str: string, separator = ' '): string {\n return str\n .normalize('NFD')\n .replace(/[\\u0300-\\u036f]/g, '')\n .toLowerCase()\n .replace(/[^a-z0-9 _-]/g, '')\n .trim()\n .replace(/[\\s_]/g, separator)\n}\n\nconst CSS_PROPERTY_WHITELIST = ['font-style', 'font-variant', 'font-weight', 'text-decoration', 'text-align']\n\nexport function sanitizeDescriptionStyle(description: string) {\n return description.replace(/style=['\"](.*?)['\"]/g, (_, style: string) => {\n return `style=\"${style\n .split(';')\n .filter((rule) => CSS_PROPERTY_WHITELIST.some((property) => rule.toLowerCase().startsWith(property)))\n .join(';')}\"`\n })\n}\n", "export * as array from './src/array.ts'\nexport * as browser from './src/browser.ts'\nexport * as hash from './src/hash.ts'\nexport * as html from './src/isHTML.js'\nexport * as money from './src/money.ts'\nexport * as number from './src/number.ts'\nexport * as payment from './src/payment.ts'\nexport * as platform from './src/platform.ts'\nexport * as scroll from './src/scroll.ts'\nexport * as searchParams from './src/searchParams.ts'\nexport * as shipping from './src/shipping.ts'\nexport * as styles from './src/styles.js'\nexport * as text from './src/text.ts'\nexport * as validation from './src/validation.ts'\nexport * as ua from './src/ua.ts'\nexport { linkify } from './src/linkify.ts'\n", "// https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm\nexport function shuffle(array: T[]): T[] {\n for (let index = array.length - 1; index > 0; index--) {\n const randomIndex = Math.floor(Math.random() * (index + 1))\n ;[array[index], array[randomIndex]] = [array[randomIndex], array[index]]\n }\n\n return array\n}\n\nexport function partition(array: T[], predicate: (item: T) => boolean): [T[], T[]] {\n return array.reduce<[T[], T[]]>(\n (accumulator, item) => {\n if (predicate(item)) {\n accumulator[0].push(item)\n } else {\n accumulator[1].push(item)\n }\n return accumulator\n },\n [[], []],\n )\n}\n", "import * as logger from '@owl-nest/logger'\n\nexport function convert(\n amount: number,\n sourceCurrency: string,\n targetCurrency: string,\n rates: { [s: string]: number },\n precision = 0,\n): number {\n if (sourceCurrency === targetCurrency) return amount\n\n if (rates === undefined || rates[sourceCurrency] === undefined || rates[targetCurrency] === undefined) {\n logger.warn(\"[money] Couldn't find currency in provided rates\", { rates, sourceCurrency, targetCurrency })\n return amount\n }\n\n const convertedAmount = (amount / rates[sourceCurrency]) * rates[targetCurrency]\n return parseFloat(convertedAmount.toFixed(precision))\n}\n", "import * as api from '@owl-nest/api-client/latest.ts'\nimport { t } from '@owl-nest/localize'\nimport { glyphs } from '@ulule/owl-kit-components/next'\n\nexport type PaymentMethod = {\n readonly description: string\n readonly id: string\n readonly name: string\n readonly action: string\n readonly icon: keyof (typeof glyphs)['paymentMethods']\n}\n\nexport function getMethodName(paymentMethod: api.PaymentMethod): string {\n switch (paymentMethod) {\n case api.PaymentMethod.BANKWIRE:\n return t('Bank transfer')\n case api.PaymentMethod.CARD:\n case api.PaymentMethod.CREDITCARD:\n return t('Credit card')\n case api.PaymentMethod.CHECK:\n return t('Check')\n case api.PaymentMethod.DIRECTDEBIT:\n return t('Direct debit')\n case api.PaymentMethod.IDEAL:\n return 'iDEAL'\n case api.PaymentMethod.MAESTRO:\n return 'Maestro'\n case api.PaymentMethod.PAYLIB:\n return 'Paylib'\n case api.PaymentMethod.PAYPAL:\n return 'PayPal'\n case api.PaymentMethod.SAVING:\n return t('Saving')\n default:\n return ''\n }\n}\n\nexport function getPaymentMethods(projectIsDonationBased?: boolean): Record {\n return {\n bankwire: {\n description: t(\n 'To pay by bank transfer, you must send a transfer directly from your bank account. Bank details and a unique reference will be provided to you in the next step. Upon receipt of the transfer, you will receive a confirmation email.',\n ),\n id: 'bankwire',\n name: t('Bank transfer'),\n action: t('Bankwire payment'),\n icon: 'Bankwire',\n },\n check: {\n description: t(\n 'The project creator undertakes to cash-in your check only if the project funding goal is reached, or to cash it in immediately but to reimburse you if the project funding goal is not reached at the end of the fundraising period.',\n ),\n id: 'check',\n name: t('Check'),\n action: t('Check payment'),\n icon: 'NeutralCard',\n },\n card: {\n description: projectIsDonationBased\n ? t('The simplest and fastest solution. Secure payment operated by Ulule.')\n : t(\n 'The simplest and fastest solution. Secure payment operated by Ulule. You are charged immediately, but you will be fully refunded (without any fees) if the project misses its target.',\n ),\n id: 'card',\n name: t('Card payment (credit, debit, maestro)'),\n action: t('Card payment'),\n icon: 'CreditCard',\n },\n directdebit: {\n description: t(\n 'Pay with online banking -two systems available: SOFORT and GIROPAY. Payment with existing online banking account. Available for users whose bank accept one of these payment methods (generally the case in Germany and Austria, and sometimes in Switzerland and Belgium). Please prepare your PIN / TAN.',\n ),\n id: 'directdebit',\n name: t('Direct debit'),\n action: t('Direct debit payment'),\n icon: 'NeutralCard',\n },\n ideal: {\n description: t(\n 'You are charged immediately but you will be fully refunded (without any fees), if the project misses its target.',\n ),\n id: 'ideal',\n name: 'iDEAL',\n action: t('iDEAL payment'),\n icon: 'IDeal',\n },\n paylib: {\n description: t(\n 'Only if you have a Paylib account, you are charged immediately but you will be fully refunded (without any fees), if the project misses its target.',\n ),\n id: 'paylib',\n name: 'Paylib',\n action: t('Paylib payment'),\n icon: 'Paylib',\n },\n paypal: {\n description: t('You will be charged only if the project owner meets their goal.'),\n id: 'paypal',\n name: 'PayPal',\n action: t('PayPal payment'),\n icon: 'Paypal',\n },\n }\n}\n", "import { DistributiveOmit, PartialSome, PropagateExtraField, WithExtra, WithParam } from '../utils.ts'\n\n/**\n * BASE TYPES\n */\nexport type ApiError = {\n classification: string\n fieldNames: string[]\n message: string\n}[]\n\nexport type I18n = Partial>\n\nexport const LANGS = ['ca', 'de', 'en', 'es', 'fr', 'it', 'nl', 'pt'] as const\nexport type Lang = (typeof LANGS)[number]\nexport const LOCALES = {\n ca: 'ca-ES',\n de: 'de-DE',\n en: 'en-US',\n es: 'es-ES',\n fr: 'fr-FR',\n it: 'it-IT',\n nl: 'nl-NL',\n pt: 'pt-PT',\n} as const\nexport type Locale = (typeof LOCALES)[Lang]\n\nexport const EXTENDED_LOCALES = {\n en: 'en_US',\n fr: 'fr_FR',\n pt: 'pt_BR',\n es: 'es_ES',\n it: 'it_IT',\n nl: 'nl_NL',\n de: 'de_DE',\n ca: 'es_ES',\n}\nexport type ExtendedLocale = (typeof EXTENDED_LOCALES)[Lang]\n\nexport type Pageable = RESPONSE & {\n meta: {\n limit: number\n next: string | null\n total_count: number\n /** not documented, boutique specific */\n offset?: number\n }\n}\n\nexport type WithOrderFacets = RESPONSE & {\n facets?: {\n payment_methods: { value: string; count: number }[] | null\n rewards:\n | {\n value: {\n id: number\n title: I18n\n description: I18n\n }\n count: number\n }[]\n | null\n status: { value: string; count: number }[] | null\n tip: number\n }\n}\n\n/**\n * ACCOUNT\n */\nexport enum AccountType {\n INDIVIDUAL = 'individual',\n BUSINESS = 'business',\n ASSOCIATION = 'association',\n}\n\ntype TaxDeductibleRate = '66' | '75'\n\nexport type Account = {\n association_type: AssociationType\n birthday: string\n can_be_deleted: boolean\n country: string\n currency: string\n edit_url: string\n email: string\n entity_name: string\n fieldsets?: Fieldset[]\n first_name: string\n id: number\n image_signature?: ImageResource\n is_completed: boolean\n is_entrepreneur: boolean\n is_last?: boolean\n label?: string\n last_name: string\n latest_project?: Project\n legal_representative_firstname?: string\n legal_representative_job_title?: string\n legal_representative_lastname?: string\n nationality: string\n status: string\n tax_deductible_rate: TaxDeductibleRate\n tax_receipt_accreditation: boolean\n type: AccountType\n user_id: number\n}\n\nexport type AccountList = Pageable<{ accounts: Account[] | null }>\n\nexport enum AccountStatus {\n WAITING = 'waiting',\n PROCESSING = 'processing',\n SUCCEEDED = 'succeeded',\n FAILED = 'failed',\n}\n\nexport type Fieldset = {\n fields: Field[]\n label?: string // NOTE: Sync isn't global yet. Some older projets don't have a label.\n features?: string[] // NOTE: same issue\n error_messages?: string[] // NOTE: same issue\n name:\n | 'legal_representative'\n | 'legal_representative_documents'\n | 'bank_account'\n | 'organization_headquarters'\n | 'organization_identification'\n | 'organization_owners'\n status: AccountStatus\n}\n\nexport type Field = {\n data:\n | {\n value: string\n status: AccountStatus\n }\n | {\n address1: string | null\n address2: string | null\n city: string | null\n country: string\n entity_name: string | null\n first_name: string\n id: string\n last_name: string\n postal_code: string | null\n state: null\n status: AccountStatus\n type: AccountType\n }\n | {\n file: null\n name: string\n purpose: null\n size: null\n status: AccountStatus\n type: string\n }\n | {\n account_number: string\n error_message: string | null\n id: string\n routing_number: string\n status: AccountStatus\n }\n\n // TODO: replace [] by real type\n | []\n | null\n name: string\n}\n\nexport type AssociationType = 'basic' | 'public_utility' | 'help_for_people' | 'general_interest' | 'other'\n\nexport type CreateAccount = {\n association_type?: AssociationType\n birthday: string\n country: string\n currency: string\n email: string\n entity_name?: string\n first_name: string\n is_required_personal_number?: boolean\n label?: string\n last_name: string\n nationality: string\n return_url: string\n tax_receipt_accreditation?: boolean\n type: AccountType\n}\n\nexport type UpdateAccount = {\n tax_receipt_accreditation?: boolean\n}\n\n/**\n * ADDRESS\n */\n\nexport enum AddressType {\n PERSONAL = 'personal',\n BUSINESS = 'business',\n ASSOCIATION = 'association',\n}\n\nexport type Address = (EntityAddress | PersonalAddress) & {\n id: number\n phone_number: string\n user_id: number\n} & WithExtra<{ has_shippings: { has_shippings: boolean } }, EXTRA_FIELDS>\n\nexport type Addresses = {\n addresses: Address[]\n}\n\nexport type BaseAddress = {\n address1: string\n address2: string\n city: string\n country: string\n postal_code: string\n state: string\n}\n\nexport type CreateAddress = PartialSome<\n DistributiveOmit,\n 'address2' | 'phone_number' | 'state'\n>\n\ntype EntityAddress = BaseAddress & {\n entity_name: string\n first_name?: string\n last_name?: string\n type: AddressType.BUSINESS | AddressType.ASSOCIATION\n}\n\ntype PersonalAddress = BaseAddress & {\n entity_name?: string\n first_name: string\n last_name: string\n type: AddressType.PERSONAL\n}\n\nexport type UpdateAddress = Partial>\n\n/**\n * ANALYTICS\n */\nexport enum AllowedAnalyticsTag {\n FACEBOOK = 'facebook',\n GOOGLE = 'google',\n TIKTOK = 'tiktok',\n TWITTER = 'twitter',\n}\n\nexport type AnalyticsTag = {\n id: number\n tag: string\n type: AllowedAnalyticsTag\n}\n\nexport type NewAnalyticsTag = {\n id: number\n tag: string\n type: AllowedAnalyticsTag\n}\n\nexport type AnalyticsTags = {\n analytics: AnalyticsTag[]\n}\n\nexport type CreateAnalyticsTag = {\n tag: string\n type: AllowedAnalyticsTag\n}\n\n/**\n * BILLING\n */\n\nexport type Invoice = {\n url: string\n}\n\n/**\n * CATEGORY & TAG\n */\n\nexport type Category = Omit\n\nexport type CategoryList = {\n categories: Category[]\n}\n\n/**\n * CHANNEL\n */\n\nexport type Channel = {\n absolute_url: string\n background: ImageResource | undefined\n bg_color: string\n cta_background: ImageResource | undefined\n description: I18n\n name: I18n\n partner: Partner\n user: PublicUser\n}\n\nexport type ChannelList = {\n channels: Channel[]\n}\n\n/**\n * COMMENT\n */\n\nexport type Comment = {\n comment: string\n id: number\n is_public: boolean\n submit_date: string\n submit_date_formatted: string\n user: PublicUser & { role: UserRole }\n} & WithParam\n\nexport type CommentList = {\n comments: Comment[]\n}\n\nexport type CreateComment = {\n comment: string\n}\n\n/**\n * EXPORT\n */\n\nexport type Export = {\n created_at: string\n format: ExportFormat\n id: number\n project_id: number\n status: 'succeeded' | 'waiting' | 'processing' | 'failed'\n type: ExportType\n url: string\n}\n\nexport type ExportFormat = 'csv' | 'xlsx'\n\nexport type ExportTabularStructure = {\n sheets: {\n view_type: ExportViewType\n sheet_name: string\n columns: {\n id?: string\n [k: string]: string | undefined\n }\n }[]\n type: ExportType\n}\n\nexport type ExportFileType = 'tax_deduction_receipt'\nexport type ExportType =\n | 'orders'\n | 'tax_deduction'\n | 'tax_deduction_receipt'\n | 'project_subscriptions'\n | 'referrals'\n | 'project_fans'\n\nexport type ExportViewType =\n | 'view_by_cross_tab'\n | 'view_by_dropoff'\n | 'view_by_orders'\n | 'view_by_pickup'\n | 'view_by_rewards'\n | 'view_by_shipping_address'\n | 'view_by_subscription_payments'\n | 'view_by_tax_deduction'\n | 'view_subscriptions'\n | 'view_by_order_referrals'\n | 'view_by_referrals'\n | 'view_by_fans'\n\nexport type CreateExport = {\n date_end?: string | null\n date_start?: string | null\n file?: {\n type: ExportFileType\n }\n tabulars?: {\n format: ExportFormat\n exports: ExportTabularStructure[]\n }\n}\n\n/**\n * FAQs\n */\n\nexport type CreateFaq = {\n question: I18n\n}\n\nexport type Faq = {\n answer_author: PublicUser\n answer: I18n\n id: number\n question_author: PublicUser\n question: I18n\n}\n\nexport type FaqList = {\n faq: Faq[]\n}\n\n/**\n * DISCUSSION\n */\n\nexport type DiscussionAttachment = {\n created_at: string\n file: string\n id: number\n name: string\n}\n\nexport type DiscussionMessage = {\n attachments: DiscussionAttachment[]\n body: string\n body_html: string\n id: number\n sender_deleted_at: string | null\n sender: PublicUser\n sent_at: string\n status: DiscussionMessageStatus\n thread_id: number\n}\n\nexport enum DiscussionMessageStatus {\n DRAFT = 'draft',\n SENT = 'sent',\n}\n\nexport type DiscussionThread = {\n created_at: string\n id: number\n latest_message: DiscussionMessage\n messages_count: number\n metadata: any\n recipients: PublicUser[]\n recipients_count: number\n sender_deleted_at: string | null\n sender_id: number\n status: DiscussionThreadStatus\n subject: string\n updated_at: string\n}\n\nexport enum DiscussionThreadStatus {\n UNREAD = 'unread',\n READ = 'read',\n DELETED = 'deleted',\n}\n\n/**\n * IMAGES\n */\n\nexport type Avatar = {\n id: number\n name: string\n value: string\n versions: Record\n}\n\nexport type CreateImage = {\n color?: string\n image: File\n lang: string\n type: ImageType\n}\n\nexport type ImageResource = {\n color?: string\n extracted_colors?: { [id: string]: string }\n id: number\n lang: string\n name?: string\n type: string\n url?: string\n is_deletable?: boolean\n versions?: Record\n}\n\nexport enum ImageType {\n AVATAR = 'avatar-draft',\n BACKGROUND = 'background',\n BACKGROUND_DRAFT = 'background-draft',\n MAIN = 'main',\n MAIN_DRAFT = 'main-draft',\n NEWS_DRAFT = 'news-draft',\n RETURN = 'return' /* bob specific */,\n REWARD = 'reward',\n REWARD_OPTION_VALUE_DRAFT = 'reward-option-value-draft',\n SECONDARY = 'secondary',\n SHARE_DRAFT = 'share-draft',\n SHIPPING_LABEL = 'shipping-label' /* bob specific */,\n SIGNATURE = 'signature',\n}\n\nexport type ImageVersion = {\n height: number | undefined\n url: string\n width: number | undefined\n}\n\n/**\n * LINK\n */\n\nexport type CreateLink = {\n url: string\n}\n\nexport type Link = {\n crawlable: boolean\n followers_count: number\n id: number\n service_type: LinkServiceType\n title: I18n\n url: string\n views_count: number\n position: number\n}\n\nexport type LinkServiceType =\n | 'bandcamp'\n | 'bluesky'\n | 'dailymotion'\n | 'discord'\n | 'email'\n | 'facebook'\n | 'instagram'\n | 'linkedin'\n | 'linktree'\n | 'mastodon'\n | 'soundcloud'\n | 'spotify'\n | 'threads'\n | 'tiktok'\n | 'tumblr'\n | 'twitch'\n | 'twitter'\n | 'vimeo'\n | 'website'\n | 'youtube'\n\n/**\n * NEWS\n */\n\nexport type News = {\n absolute_url: string\n audience_type: NewsAudienceType\n comments_count: number\n content: I18n | null\n content_type: 'text' | 'image' | 'video'\n content_types: I18n<'text' | 'image' | 'video'>\n date_creation: string\n date_publication: string | null\n date_schedule?: string\n id: number\n image: I18n | undefined\n permissions: {\n self: ('read' | 'update')[] | null\n }\n preview: I18n\n reserved: boolean\n resource_uri: string\n rewards: Reward[] | null\n slug: string\n status: NewsStatus\n title: I18n\n video: I18n | undefined\n} & WithParam &\n WithParam &\n WithExtra<{ stats: { visits: number } }, EXTRA_FIELDS>\n\nexport type NewsList = {\n news: News[] | null\n}\n\nexport type NewsListPage = Pageable\n\nexport type NewsListPageWithFacets = WithNewsFacets\n\nexport enum NewsAudienceType {\n ALL = 'all',\n SUPPORTERS = 'supporters',\n FANS = 'fans',\n PAYING = 'paying-members',\n TIP = 'tip-supporters',\n}\n\nexport enum NewsStatus {\n ONLINE = 'online',\n WAITING = 'waiting',\n SCHEDULED = 'scheduled',\n}\n\nexport type CreateNews = {\n audience_type?: NewsAudienceType\n content: I18n\n image_id?: I18n\n reward_ids?: number[]\n title: I18n\n video_url?: I18n\n status?: NewsStatus.SCHEDULED | NewsStatus.WAITING\n date_schedule?: string | null\n}\n\nexport type WithNewsFacets = RESPONSE & {\n facets?: {\n public?: number\n content_types?: {\n count: number\n value: 'text' | 'image' | 'video'\n }[]\n rewards?: {\n count: number\n value: {\n id: number\n title: I18n\n description: I18n\n }\n }[]\n }\n}\n\n/**\n * ORDER\n */\n\nexport type CreateOrder = {\n dry_run?: boolean\n tip?: number\n payment_method: string\n pickup_point_id?: number\n return_url: string\n rewards?: RewardPayload[]\n country?: string\n delivery_type?: DeliveryType\n tracking?: { [property: string]: string } /* Undocumented on purpose, for internal use only */\n} & (\n | { billing_address?: CreateAddress; billing_address_id?: undefined }\n | { billing_address?: undefined; billing_address_id?: number }\n) &\n (\n | {\n shipping_address?: CreateAddress &\n (\n | {\n dropoff_id: number\n dropoff_name: string\n longitude: number\n latitude: number\n }\n | {\n dropoff_id?: undefined\n dropoff_name?: undefined\n longitude?: undefined\n latitude?: undefined\n }\n )\n shipping_address_id?: undefined\n }\n | { shipping_address?: undefined; shipping_address_id?: number }\n )\n\nexport enum OrderType {\n MONTHLY = 'monthly',\n SINGLE = 'single',\n}\n\nexport enum OrderStatus {\n /* for check payments */\n PROCESSING = 'processing',\n /* order created, checkout redirected to kolkt, but no payment made yet */\n AWAITING_CONFIRMATION = 'awaiting-confirmation',\n /* order payed, not transfered to project owner yet */\n PAYMENT_COMPLETED = 'payment-completed',\n /* order payed, cancelled by backer (reimbursed) before transfer to project owner */\n CANCELLED = 'cancelled',\n /* order payed, transfered to project owner */\n PAYMENT_DONE = 'payment-done',\n /* error while transfering to project owner (pre-authorization or paypal) */\n PAYMENT_INVALID = 'payment-invalid',\n /* order payed, project failed, backer reimbursed */\n PAYMENT_REIMBURSED = 'payment-reimbursed',\n /* error during payment (3DS, mangopay error etc ...) */\n ERROR = 'error',\n}\n\nexport type BillingAddressType = 'tax' | 'contact'\n\nexport type ShippingMode = 'home_delivery' | 'mondial_relay' | 'pickup_point'\n\nexport type Order = {\n absolute_url: string | undefined\n bankwire?: {\n account_number: string\n owner_name: string\n routing_number: string\n wire_reference: string\n }\n billing_address: Address | undefined\n billing_address_required: boolean\n billing_address_type?: BillingAddressType\n created_at: string\n countries_available: string[]\n discount_total?: number\n edit_url: string | undefined\n error_code?: string\n first_in_subscription: boolean | undefined\n id: number\n initial_billing_address_required: boolean\n initial_contact_address_required: boolean\n initial_pickup_point_required: boolean\n initial_shipping_address_required: boolean\n initial_tax_address_required: boolean\n is_tip: boolean\n items?: OrderItem>[]\n note: string | undefined\n order_shipping_total: number\n order_subtotal: number\n order_total: number\n subscription_total: number | undefined\n payment_method: PaymentMethod\n payment_url: string\n pickup_point?: PickupPoint | undefined\n pickup_point_required: boolean\n phone_number_required: boolean\n project_id: number\n provider?: 'stripe' | 'mangopay' | 'paypal' | 'check' | 'leetchi'\n refunded: boolean\n resource_uri: string\n shipping_address?:\n | (Address & {\n delivery_type?: 'mondial_relay' | 'home_delivery'\n latitude?: number\n longitude?: number\n dropoff_id?: string\n dropoff_name?: string\n })\n | undefined\n\n shipping_address_required: boolean\n shippings_available?: {\n pickup_points?: PickupPoint[]\n standard?: Record\n mondial_relay?: Record\n }\n initial_shippings_available?: {\n pickup_points?: PickupPoint[]\n standard?: Record\n mondial_relay?: Record\n }\n shipping_modes: ShippingMode[] | null\n shipping_status?: ShippingStatus | undefined\n shipping_type?: OrderShippingType | undefined\n status: OrderStatus\n tax_deductible: boolean\n tax_deductible_subtotal?: number\n tax_deductible_total?: number\n tax_receipt: boolean\n tax_receipt_url: string | undefined\n thanks_note?: I18n\n tip: number\n user: (Supporter & { email: string; socials?: UserSocials[] }) | undefined\n is_hidden?: boolean\n is_cancellable?: boolean\n private_note?: string /** not documented */\n renew_url?: string /** not documented */\n\n shopify_order_number?: number /** not documented, bob specific */\n shopify_order_id?: number /** not documented, bob specific */\n\n children: 'children' extends EXTRA_FIELDS\n ? ChildOrder, 'children'>>[]\n :\n | ChildOrder, 'children'>>[]\n | undefined /** not documented, bob specific */\n} & ({ subscription: Subscription; type: OrderType.MONTHLY } | { subscription?: undefined; type?: OrderType.SINGLE }) &\n WithParam &\n WithExtra<\n {\n latest_user_project_comment: { latest_user_project_comment: Comment | undefined }\n shipping_trackings: { shipping_trackings: OrderShippingTracking[] }\n discount: { discount: { code: string } | undefined }\n },\n EXTRA_FIELDS\n >\n\ntype UserSocials = {\n provider: 'discord'\n user_id: string\n username: string\n}\n// TODO: merge with ShippingTracking\nexport type OrderShippingTracking = {\n created_at: string\n items?: {\n order_item: Omit & {\n reward: Variant\n }\n quantity: number\n }[]\n status: ShippingTrackingStatus\n tracking_company?: string\n tracking_number?: string\n tracking_url?: string\n}\n\nexport type ChildOrder = Omit, 'project'> & {\n project: Project\n parent?: Order\n has_expired_return_deadline?: boolean /** not documented, bob specific */\n} & WithExtra<{ returns: { returns: Omit[] } }, EXTRA_FIELDS>\n\nexport type OrderItem = {\n additional_cost?: number\n discount_total: number\n fulfillment_status?: ItemFulfillmentStatus /** not documented, bob specific */\n line_shipping_total: number\n line_subtotal: number\n line_total: number\n quantity: number\n reward:\n | (Reward> & { parent?: undefined })\n | (Variant> & {\n parent: Reward>\n })\n reward_id: number\n unit_price: number\n} & WithExtra<{ discount: { discount: { code: string } | undefined } }, EXTRA_FIELDS>\n\nexport enum ItemFulfillmentStatus {\n PARTIAL = 'partial',\n FULFILLED = 'fulfilled',\n}\n\nexport type OrderList = {\n orders: Order[]\n}\n\nexport enum OrderShippingType {\n NO_SHIPPING = 'no_shipping',\n USER_ADDRESS = 'user_address',\n PICKUP_POINT = 'pickup_point',\n MONDIAL_RELAY = 'dropoff',\n}\n\nexport type UpdateOrder = {\n billing_address_id?: number\n hidden?: boolean\n note?: string\n private_note?: string\n shipping_address?: UpdateAddress & {\n delivery_type?: 'mondial_relay' | 'home_delivery'\n dropoff_id?: string\n dropoff_name?: string\n }\n billing_address?: UpdateAddress\n billing_and_shipping_address?: UpdateAddress\n shipping_address_id?: number\n user_id?: number\n}\n\n/**\n * ORDER RETURN\n */\n\nexport enum ReturnType {\n EXCHANGE = 'exchange',\n REFUND = 'refund',\n NEW_SHIPMENT = 'new_shipment',\n}\n\nexport enum ReturnReasonType {\n CANCEL = 'cancel',\n WRONG_ITEM = 'wrong_item',\n DEFECTIVE_OR_DAMAGED_ITEM = 'defective_or_damaged_item',\n INCOMPLETE_ITEM = 'incomplete_item',\n MISSING_ITEM = 'missing_item',\n WRONG_DESCRIPTION = 'wrong_description',\n PURCHASE_MADE_BY_MISTAKE = 'purchase_made_by_mistake',\n SIZE_OR_COLOR_PROBLEM = 'size_or_color_problem',\n DOES_NOT_MEET_EXPECTATIONS = 'does_not_meet_expectations',\n CHANGE_OF_MIND = 'change_of_mind',\n}\n\ntype CreateReturnItem = {\n reward_id: number\n type: ReturnType\n reason_type: ReturnReasonType\n quantity: number\n explanation?: string\n image_ids: number[]\n}\n\nexport type CreateReturn = {\n dry_run: boolean\n items: CreateReturnItem[]\n}\n\nexport enum ReturnShippingFeePolicy {\n OWNER = 'owner',\n CUSTOMER = 'customer',\n}\n\nexport enum ReturnStatus {\n WAITING_APPROVAL = 'waiting-approval',\n ACCEPTED = 'accepted',\n REFUSED = 'refused',\n}\n\nexport enum ReturnRefusalType {\n EXPIRED = 'expired',\n VENDOR = 'refused_by_vendor',\n}\n\nexport enum ShippingTrackingStatus {\n WAITING_SHIPPING = 'waiting-shipping',\n IN_TRANSIT = 'in-transit',\n DELIVERED = 'delivered',\n INFO_RECEIVED = 'info-received',\n FAILED_ATTEMPT = 'failed-attempt',\n RETURNED = 'returned',\n EXPIRED = 'expired',\n}\n\nexport type ShippingTracking = {\n created_at: string\n label?: ImageResource\n status: ShippingTrackingStatus\n tracking_url?: string\n}\n\nexport type OrderReturn = {\n accepted_at?: string\n answer?: string\n created_at: string\n closed_at?: string\n is_closed: boolean\n is_refunded?: boolean\n id: number\n items: OrderReturnItem[]\n order: ChildOrder<'items.discount'>\n refund_discount_total: number\n refund_shipping_total: number\n refund_subtotal: number\n refund_total: number\n refunded_at?: string\n refusal_type?: ReturnRefusalType\n refused_at?: string\n shipping_fees_policy: ReturnShippingFeePolicy\n shipping_total?: number\n shipping_tracking?: ShippingTracking\n status: ReturnStatus\n}\n\nexport type OrderReturnItem = {\n images?: ImageResource[]\n explanation?: string\n line_subtotal: number\n quantity: number\n reason_type: ReturnReasonType\n reward: Reward\n type: ReturnType\n unit_price: number\n}\n\n/**\n * MEMBER\n */\nexport type Member = {\n date_creation: string\n id: number\n role: string\n user: PublicUser\n}\n\nexport type UpdateMember = {\n role: string\n}\n\nexport type CreateMember = {\n role: string\n username: string\n}\n\nexport type MemberList = {\n members: Member[]\n}\n\n/**\n * PARTNERSHIP\n */\n\nexport type Partner = {\n id: number\n logo: ImageResource\n name: string\n ribbon?: ImageResource\n slug: string\n url: string\n user_id: number\n\n is_default?: boolean /** not documented */\n ribbon_winner?: ImageResource /** not documented */\n}\n\nexport type Partnership = {\n id: number\n is_default: boolean\n is_support: boolean\n ribbon?: ImageResource\n partner: Partner\n project: Project\n\n is_winner?: boolean /** not documented */\n}\n\n/**\n * PAYMENT\n */\n\nexport enum PaymentMethod {\n BANKWIRE = 'bankwire',\n CARD = 'card',\n CHECK = 'check',\n CREDITCARD = 'creditcard',\n DIRECTDEBIT = 'directdebit',\n IDEAL = 'ideal',\n MAESTRO = 'maestro',\n PAYLIB = 'paylib',\n PAYPAL = 'paypal',\n SAVING = 'saving',\n}\n\nexport enum PaymentStatus {\n WAITING = 'waiting',\n PROCESSING = 'processing',\n READY = 'ready',\n ERROR = 'error',\n PAYMENT_PROCESSING = 'payment-processing',\n COMPLETED = 'completed',\n}\n\n/**\n * PROJECT\n */\n\nexport enum FIELDSETS_KEYS {\n AVATAR_IMAGE = 'avatar_image',\n ABOUT = 'content.description',\n ACCOUNT = 'account',\n ANALYTICSTAGS = 'analyticstags',\n BACKGROUND_IMAGE_COLOR = 'background_image.bgcolor',\n CITY = 'city',\n COUNTRY = 'country',\n DATE_END = 'date_end',\n DELIVERY = 'delivery',\n DESCRIPTION_FUNDING = 'content.description_funding',\n DESCRIPTION_YOURSELF = 'content.description_yourself',\n FAQS = 'faqs',\n GOAL = 'goal',\n IMPACTS = 'impacts',\n MAIN_CATEGORY = 'main_tag',\n MAIN_IMAGE = 'main_image',\n NB_DAYS = 'nb_days',\n OWNER_AVATAR = 'owner.avatar',\n OWNER_SCREENNAME = 'owner.screenname',\n REWARDS = 'rewards',\n SUBTITLE = 'content.subtitle',\n TEAM = 'team',\n TITLE = 'content.name',\n}\n\nexport type TrainingType = 'crowdfunding' | 'webmarketing-digital' | 'create-my-company' | 'professional-coaching'\n\ntype ProjectOwner = PublicUser & { stats: UserStats } & WithExtra<\n {\n socials: { socials?: { provider: 'discord'; user_id: string; username: string }[] }\n },\n EXTRA_FIELDS\n >\n\nexport type ProjectExamples = [ProjectBase, ProjectBase, ProjectBase]\n\ntype ProjectBase = {\n absolute_url: string\n amount_raised: number\n analytics_count: number\n automatic_goal: boolean\n avatar_image: I18n | undefined\n background_color: I18n | undefined\n background_image: I18n<{ id: string; url: string }> | undefined\n boutique_link: Link | undefined\n city: string\n comments_allowed?: boolean\n comments_count: number\n comments_enabled: ProjectCommentsPermission\n committed: number\n country: string\n currency: string\n date_creation: string\n date_delivery?: string\n date_end_extra_time: string | undefined\n date_end: string | undefined\n date_online: string | undefined\n /* @deprecated Use `date_online` instead */\n date_start: string | undefined\n description: I18n\n description_funding: I18n\n description_yourself: I18n\n discussions_thread_id: number | undefined\n donations_monthly_allowed: boolean | undefined\n donations_single_allowed: boolean | undefined\n extra_time_canceled_at: string | undefined\n fans_count: number\n finished: boolean\n goal: number\n goal_description: I18n\n goal_title: I18n\n goal_raised: boolean\n goal_status: GoalStatus\n goal_type?: GoalType\n has_extra_time: boolean\n id: number\n is_cancelled: boolean\n is_in_extra_time: boolean\n is_online: boolean\n lang: Lang\n location: ProjectLocation | undefined\n lowest_contribution_amount: number\n main_image: I18n | undefined\n main_tag: TagBase | undefined\n maximum_return_days?: number /** not documented, bob specific */\n membership_stats: MembershipStats\n multi_variations_enabled: boolean\n moderation_message: DiscussionMessage & {\n read_by_owner: boolean\n }\n name: I18n\n nb_days: number | undefined\n nb_products_sold: number\n news_count: number\n nsfw?: boolean\n orders_count: number\n orders_enabled?: boolean\n owner: ProjectOwner\n payment_methods: Array | undefined\n permissions: ProjectPermissions\n phone_number_required?: boolean\n resource_uri: string\n share_image: I18n | undefined\n shipping_address_required: boolean\n shipping_band_enabled: boolean\n shopify_vendor?: string /** not documented, boutique specific */\n show_created_projects: boolean\n show_goal?: boolean\n show_subscriptions_amount: boolean\n show_subscriptions_count: boolean\n slug: string\n sponsorships_count: number\n status: ProjectStatus\n subscriptions_amount?: number\n subscriptions_count?: number\n subtitle: I18n\n supporters_count: number\n tax_address_required?: boolean\n tax_deductible: boolean\n tax_deductible_rate?: TaxDeductibleRate\n tax_receipt_enabled: boolean\n thanks_note?: I18n\n timezone: string\n training_types?: TrainingType[]\n type: ProjectType\n urls: any\n video: I18n | undefined\n visible: boolean\n validation_message: DiscussionMessage & {\n read_by_owner: boolean\n }\n\n required_personal_id_number?: boolean /** not documented */\n sharing_urls: I18n | undefined /** not documented */\n\n is_featured?: boolean /** WARN: this is an exception that only happens when using search API */\n}\n\nexport type Project = ProjectBase &\n WithExtra<\n {\n account: { account: Account }\n analytics: { analytics: AnalyticsTag[] }\n answer_code: { answer_code: ProjectAnswerCode }\n billing: { billing: ProjectBilling | undefined }\n community_members_count: { community_members_count: number }\n default_manager: { default_manager: PublicUser | undefined }\n examples: ProjectExamplesResponse\n fields_needed: { fields_needed: string[] }\n fieldsets: { fieldsets: ProjectFieldset[] }\n latest_news: { latest_news: News | undefined }\n latest_project_online: {\n latest_project_online: Project | undefined\n show_latest_project_online: boolean\n }\n latest_supporter: { latest_supporter: PublicUser | undefined }\n links: { links: Link[]; post_campaign_link: Link }\n manager: { discussion_disabled: boolean; manager: Manager | undefined }\n onboarding_steps: { onboarding_steps: any }\n partnerships: { partnerships: Partnership[] }\n proposal: { proposal: Proposal }\n rewards: { rewards: Reward[] | undefined }\n share_images: {\n share_images: { facebook: I18n | undefined; twitter: I18n | undefined }\n } /** image processed from share_image for sharing **/\n slugs: { slugs: { id: number; slug: string }[] }\n socials: {\n discord_guild_id?: string\n discord_guild_name?: string\n discord_roles?: {\n id: number\n value: string\n }[]\n }\n sponsorships: { sponsorships: Sponsorship[] | undefined }\n shippings: { shippings: ShippingZones }\n tags: { tags: TagBase[] }\n tax_receipts_available: { tax_receipts_available: boolean }\n thread: { thread: DiscussionThread }\n unread_count: { unread_count: number }\n user_orders: { user_orders: Order[] }\n user_role: { user_role: UserRole }\n user_subscriptions: { user_subscriptions: Subscription[] }\n sensitive_terms: { sensitive_terms: SensitiveTerm[] | undefined }\n membership_stats: { membership_stats: MembershipStats }\n },\n EXTRA_FIELDS\n >\n\nexport type MembershipStats = {\n balance: Balance\n free_subscriptions_count: number\n paid_subscriptions_count: number\n}\n\nexport enum ProjectAnswerCode {\n ACCEPTED = 'accepted',\n NEED_MODERATION = 'need-moderation',\n}\n\nexport type ProjectBilling = {\n invoice: Invoice | undefined\n payment_status: PaymentStatus\n}\n\nexport type ProjectDropoffPointsRequest = {\n address: string\n carrier: 'mondial_relay'\n city: string\n country: string\n latitude_address: number\n latitude_center_map?: number\n longitude_address: number\n longitude_center_map?: number\n provider?: 'mondial_relay' | 'boxtal' | 'shippypro'\n range?: number\n zip: string\n}\n\nexport type DropoffPoint = {\n carrier: 'mondial_relay'\n city: string\n country: string\n day_of_week: {\n day: string\n hours: {\n close: string\n open: string\n }[]\n }[]\n distance: number\n latitude: number\n longitude: number\n point_id: string\n point_name: string\n street: string\n zip: string\n}\n\nexport type ProjectDropoffPointsResponse = {\n points: DropoffPoint[]\n}\n\nexport type ProjectExamplesResponse = {\n examples: ProjectExamples\n}\n\nexport type ProjectExamplesRequest = {\n force_recompute?: boolean\n with_delay?: boolean\n}\n\nexport type ProjectFieldset = { completed: boolean; key: FIELDSETS_KEYS; required: boolean }\n\nexport type ProjectLocation = {\n city: string\n country: string\n}\n\nexport enum ProjectOffboardingType {\n BUY = 'buy',\n FOLLOW = 'follow',\n SUPPORT = 'support',\n}\n\nexport type ProjectList = {\n projects: Project[]\n}\n\nexport enum ProjectStatus {\n ONLINE = 'online',\n NEW = 'new',\n PENDING = 'pending',\n PENDING_OWNER = 'pending-owner',\n VALIDATED = 'validated',\n REFUSED = 'refused',\n WAITING = 'waiting',\n PENDING_FINAL_VALIDATION = 'pending-final-validation',\n}\n\nexport enum GoalStatus {\n FUNDING = 'funding',\n SUCCESS = 'success',\n FAILED = 'failed',\n CANCELLED = 'cancelled',\n FRAUD = 'fraud',\n}\n\nexport enum GoalType {\n QUANTITATIVE = 'quantitative',\n FINANCIAL = 'financial',\n}\n\nexport type ProjectSubmitRequest = {\n message?: string\n}\n\nexport type ProjectPublishRequest = {\n date_end?: string\n timezone: string\n}\n\nexport enum ProjectType {\n Donation = 'donation',\n Presale = 'presale',\n Project = 'project',\n Vendor = 'vendor',\n Membership = 'membership',\n}\n\nexport type SensitiveTerm = {\n match: string[]\n query_id: number\n query_metadata: {\n theme: string\n }\n}\n\nexport type UpdateProject = {\n account_id?: number | null\n account?: Account\n avatar_image_id?: I18n\n background_color?: I18n\n background_image_id?: I18n\n city?: string\n country?: string\n currency?: string\n date_delivery?: string\n date_end?: string | null\n description_funding?: I18n\n description_yourself?: I18n\n description?: I18n\n donations_monthly_allowed?: boolean\n donations_single_allowed?: boolean\n goal?: number | null\n goal_description?: I18n\n goal_title?: I18n\n hide_goal?: boolean\n lang?: string\n main_image_id?: I18n\n main_tag?: string\n name?: I18n\n nsfw?: boolean\n nb_days?: number | null\n phone_number_required?: boolean\n post_campaign_link?: {\n title?: I18n\n url?: string\n } | null\n share_image_id?: I18n /** for membership */\n shipping_address_required?: boolean /** for membership */\n show_created_projects?: boolean /** for membership */\n show_latest_project_online?: boolean /** for membership */\n show_subscriptions_amount?: boolean /** for membership */\n show_subscriptions_count?: boolean /** for membership */\n shipping_type?: ShippingKind\n slug?: string\n slugify?: boolean\n subtitle?: I18n\n tags?: string[]\n tax_address_required?: boolean\n tax_deductible?: {\n association_type?: AssociationType\n create_rewards?: number[]\n delete_rewards?: number[]\n enabled?: boolean\n entity_name?: string\n legal_representative_image_signature?: number\n legal_representative_job_title?: string\n rate?: TaxDeductibleRate\n receipt_enabled?: boolean\n }\n thanks_note?: I18n\n timezone?: string\n training_types?: TrainingType[]\n type?: ProjectType\n video_url?: I18n\n\n update_rewards?: {\n id: number\n position?: number\n social_ids?: number[]\n }[]\n\n // Project links\n create_links?: {\n title?: I18n\n url: string\n }[]\n delete_links?: number[]\n update_links?: {\n id: number\n title?: I18n\n url: string\n }[]\n} & WithExtra<\n {\n onboarding_steps: { onboarding_steps?: any }\n slugs: { slugs?: string[] }\n },\n EXTRA_FIELDS\n>\n\nexport type UserProjectSort = 'created_at' | 'followed_at' | 'supported_at'\n\nexport type UserProjectState = 'created' | 'followed' | 'online' | 'supported'\n\nexport type ProjectStatistics = {\n amount_dates: Array<{\n date: string\n values: {\n tip_amount: number\n subscription_amount: number\n }\n }>\n amounts_raised: Array<{\n date: string\n values: {\n tip_amount: number\n subscriptions_amount: number\n }\n }>\n balance: {\n amount_raised: number\n }\n current_amount_raised: number\n current_free_subscriptions_count: number\n current_paid_subscriptions_count: number\n current_subscriptions_count: number\n current_visits_count: number\n free_subscriptions_count: number\n paid_subscriptions_count: number\n period_type: 'day' | 'week' | 'month'\n previous_amount_raised: number\n previous_free_subscriptions_count: number\n previous_paid_subscriptions_count: number\n previous_subscriptions_count: number\n previous_visits_count: number\n news: Array<\n News & {\n page_views: number\n visitors: number\n visits: number\n }\n >\n referrers: [\n {\n name: string\n values: {\n visits_count: number\n }\n },\n ]\n rewards: Array<\n Reward & {\n subscription_count: number\n amount_raised: number\n }\n >\n subscriptions_amount: number\n subscriptions_count: number\n subscription_dates: Array<{\n date: string\n values: {\n paid_count: number\n free_count: number\n }\n }>\n visits_count: number\n visit_dates: Array<{\n date: string\n values: {\n visit: number\n }\n }>\n}\n\n// Project permissions\n\nexport type ProjectPermissions = {\n self: [ProjectSelfPermission] | [ProjectSelfPermission, ProjectSelfPermission] | null\n news: [ProjectNewsPermission] | [ProjectNewsPermission, ProjectNewsPermission] | null\n}\n\nexport enum ProjectCommentsPermission {\n EVERYONE = 'everyone',\n SUPPORTERS = 'supporters',\n NOONE = 'disabled',\n}\n\nexport enum ProjectNewsPermission {\n CREATE = 'create',\n READ = 'read',\n}\n\nexport enum ProjectSelfPermission {\n UPDATE = 'update',\n READ = 'read',\n}\n\n/**\n * PROJECT EVENT\n */\n\nexport type Event =\n | EventFirstOrder\n | EventNews\n | EventPercentRaised\n | EventProjectEnd\n | EventProjectEndExtraTime\n | EventProjectStart\n | EventSponsorship\n\nexport type EventFirstOrder = {\n data: Order\n time: string\n type: EventType.FIRST_ORDER\n}\n\nexport enum EventGoalStatus {\n SUCCESS = 'success',\n FAILED = 'failed',\n}\n\nexport type EventList = {\n draft_news?: News[]\n events: Event[]\n}\n\nexport type EventNews = {\n data: News\n time: string\n type: EventType.NEWS\n}\n\nexport type EventPercentRaised = {\n data: {\n percent: number\n }\n time: string\n type: EventType.PERCENT_RAISED\n}\n\nexport type EventProjectEnd = {\n data: {\n goal_status: EventGoalStatus\n has_extra_time: boolean\n }\n time: string\n type: EventType.PROJECT_END\n}\n\nexport type EventProjectEndExtraTime = {\n time: string\n type: EventType.PROJECT_END_EXTRATIME\n}\n\nexport type EventProjectStart = {\n time: string\n type: EventType.PROJECT_START\n}\n\nexport type EventSponsorship = {\n data: Sponsorship\n time: string\n type: EventType.SPONSORSHIP\n}\n\nexport enum EventType {\n NEWS = 'news',\n PERCENT_RAISED = 'percent_raised',\n FIRST_ORDER = 'first_order',\n PROJECT_START = 'project_start',\n PROJECT_END_EXTRATIME = 'project_end_extra_time',\n PROJECT_END = 'project_end',\n SPONSORSHIP = 'sponsorship',\n}\n\n/**\n * PROPOSAL\n */\n\nexport enum ProposalTypeNumber {\n PRESALE = 1,\n PROJECT = 2,\n MEMBERSHIP = 5,\n}\n\nexport enum ProposalType {\n PRESALE = 'presale',\n PROJECT = 'project',\n}\n\nexport enum LegalEntity {\n PERSONAL = 'personal',\n BUSINESS = 'business',\n ASSOCIATION = 'association',\n}\n\nexport enum RewardType {\n CONCRETE = 'concrete',\n SYMBOLIC = 'symbolic',\n NONE = 'none',\n UNDEFINED = 'undefined',\n}\n\nexport type CreateProposal = {\n address?: string\n birthday?: string\n city?: string\n community_range?: { min?: number; max?: number }\n country: string\n currency?: string\n description?: string\n first_name?: string\n goal?: number\n goal_range?: { min?: number; max?: number }\n lang?: string\n last_name?: string\n legal_entity_type?: LegalEntity\n links?: string[]\n link_ids?: number[]\n name?: string\n nationality?: string\n partner_id?: number\n /** not documented */\n phone_number?: string\n rewards?: string\n rewards_type?: RewardType\n structure?: string\n type?: ProposalTypeNumber\n nb_products_min?: number\n /** doc says it's required depending on type, but it works without `nb_products_min` for each type */\n auto_validation: true\n /** not documented, boolean used during the transition from an old version of proposal where validation was triggered manually. This old version does not exists anymore so the value is fixed */\n switch_okpal_to_donation: boolean /** not documented, boolean used during the transition from reward based projects only to donation or reward based projects */\n}\n\nexport type RefuseProposal = (\n | {\n answer: string\n }\n | {\n answer_html: string\n }\n) & {\n answer_code: ProposalAnswerCode\n}\n\nexport type CreateAnonymousProposal = CreateProposal & {\n email: string\n}\n\nexport enum DatStartEstimation {\n AS_SOON_AS_POSSIBLE = 'as soon as possible',\n IN_THE_MONTH = 'in the month',\n IN_ONE_OR_THREE_MONTHS = 'in one to three months',\n IN_MORE_THAN_THREE_MONTHS = 'in more than three months',\n}\n\nexport enum ProposalStatus {\n PENDING = 'pending',\n NEW = 'new',\n VALID = 'valid',\n INVALID = 'invalid',\n WAITING = 'waiting',\n UPDATED = 'updated',\n}\n\nexport enum ProposalAnswerCode {\n PENDING = 'pending',\n PENDING_PARTNER = 'pending-partner',\n PENDING_TIMEOUT = 'pending-timeout',\n VALID = 'valid',\n VALID_PARTNER = 'valid-partner',\n VALID_TIMEOUT = 'valid-timeout',\n INVALID_OKPAL = 'invalid-okpal',\n INVALID_COUNTRY = 'invalid-country',\n INVALID_DUPLICATE = 'invalid-duplicate',\n}\n\nexport type Proposal = {\n address: string\n answer: string\n answer_code?: ProposalAnswerCode\n answer_html: string\n category: Category | null\n category_id: number | null\n city: string\n country: string\n currency: string\n date_creation: string\n date_start_estimation: DatStartEstimation | null\n date_update: string\n description: string\n email: string\n first_name: string\n goal: number\n goal_range: { min?: number; max?: number }\n id: number\n is_reachable: boolean /** not documented */\n lang: string\n last_name: string\n legal_entity_type: LegalEntity\n name: string\n nb_products_min: number\n partner: Partner\n phone_number: string\n project: Project | null\n references: string\n resource_uri: string\n rewards: string\n rewards_type: RewardType\n status: ProposalStatus\n structure: string\n token: string\n type: ProposalType\n user: PublicUser\n} & WithParam<\n true,\n IS_STAFF,\n {\n manager: PublicUser | null\n score: number\n score_entries: ScoreEntry\n }\n> &\n WithExtra<\n {\n links: { links: Link[] }\n },\n EXTRA_FIELDS\n >\n\nexport type UpdateProposal = Partial & {\n link_ids?: number[]\n}\n\nexport type ScoreEntry = {\n description: number\n goal_range: number\n legal_entity_type: number\n links: number\n rewards_type: number\n user: number\n}\n\n/**\n * REFERRAL\n */\n\nexport type Referral = {\n amount_raised: number\n contributions_count: number\n is_backer: boolean\n rank: number\n user: AuthenticatedUser\n}\n\nexport type ReferralList = {\n referrals: Referral[] | null\n}\n\nexport type ReferralListPage = Pageable\n\n/**\n * REWARD\n */\nexport type CreateReward = {\n description: I18n\n dry_run?: boolean\n image_id: I18n\n is_combined?: boolean\n title: I18n\n} & (\n | {\n is_free: true\n price?: undefined\n options?: undefined\n variants?: undefined\n stock?: undefined\n is_featured?: undefined\n is_hidden?: undefined\n num_products?: undefined\n phone_number_required?: undefined\n shipping_address_required?: undefined\n tax_deductible?: undefined\n }\n | {\n is_free?: false\n options?: {\n description?: I18n\n name: I18n\n position: number\n identifier: string\n values: {\n additional_cost?: number | null\n image_id?: I18n\n name: I18n\n position: number\n identifier: string\n stock?: number | null\n }[]\n }[]\n price: number\n variants?: {\n additional_cost?: number | null\n image_id?: I18n\n position: number\n stock?: number | null\n }[]\n stock?: number | null\n is_featured?: boolean\n is_hidden?: boolean\n num_products?: number\n phone_number_required?: boolean\n shipping_address_required?: boolean\n tax_deductible?: boolean\n }\n)\n/** for membership */\n\nexport type UpdateOptionsInUpdateReward = {\n description?: I18n\n id: number\n name: I18n\n position: number\n create_values: {\n additional_cost: number | null | undefined\n identifier: string\n name: I18n\n image_id?: I18n\n position: number\n stock?: number | null\n }[]\n delete_values: number[]\n update_values: {\n additional_cost: number | null | undefined\n id: number\n name: I18n\n image_id?: I18n\n position: number\n stock?: number | null\n }[]\n}\n\nexport type UpdateReward = Partial & {\n create_options?: {\n description?: I18n\n name: I18n\n position: number\n identifier: string\n values: {\n name: I18n\n image_id?: I18n\n position: number\n stock?: number | null\n }[]\n }[]\n create_variants?: {\n additional_cost?: number | null\n description: I18n\n image_id?: I18n\n position: number\n stock?: number | null\n }[]\n delete_custom_delivery?: boolean\n delete_options?: number[]\n delete_variants?: number[]\n update_options?: UpdateOptionsInUpdateReward[]\n update_variants?: {\n additional_cost?: number | null\n description: I18n\n id: number\n image_id?: I18n\n position: number\n stock?: number | null\n }[]\n}\n\nexport type Reward = {\n available: boolean\n aware_stock: number | null\n aware_stock_available: number | null\n description: I18n\n has_custom_delivery: boolean\n id: number\n image?: I18n\n is_combined: boolean\n is_featured: boolean\n is_free?: boolean /** only for memberships */\n is_hidden: boolean\n is_returnable?: boolean /** not documented, bob specific */\n is_virtual?: boolean /** not documented, bob specific */\n num_products?: number\n options?: RewardOption[]\n orders_count?: number\n phone_number_required?: boolean\n position?: number\n price: number\n project_id: number\n project?: Project\n resource_uri: string\n shippings?: {\n date_delivery: string\n phone_number_required: boolean\n shipping_type: ShippingKind\n zones: RewardShippingZone[]\n }\n shipping_address_required?: boolean\n shopify_handle?: string /** not documented, bob specific */\n shopify_product_id?: number /** not documented, bob specific */\n socials?: {\n id: number\n value: string\n }[]\n stock: number | null\n stock_available: number | null\n stock_taken: number\n tags?: string[] /** not documented, bob specific */\n tax_deductible_price: number\n tax_deductible: boolean\n thanks_note: I18n\n title: I18n\n variants?: Variant[]\n variants_count: number\n}\n\nexport type RewardPayload = {\n quantity: number\n reward_id: number\n}\n\nexport type RewardOption = {\n description?: I18n\n id: number\n name: I18n\n position: number\n values: RewardOptionValue[]\n}\n\n// aware_stock are not available on options since they are related to cart status\n// and options are not taken into account there (vs reward and variants that are)\nexport type RewardOptionValue = {\n additional_cost: number | null\n id: number\n image?: I18n\n name: I18n\n option?: RewardOption\n position: number\n stock?: number | null\n stock_available?: number | null\n stock_taken: number\n identifier?: string // only in dry run\n}\n\nexport type Variant = {\n additional_cost: number | null\n available: boolean\n aware_stock: number | null\n aware_stock_available: number | null\n description: I18n\n id: number\n image?: I18n\n is_virtual?: boolean /** not documented, bob specific */\n parent?: Reward\n position?: number\n price?: number /** not documented, bob specific */\n stock: number | null\n stock_available: number | null\n stock_taken: number\n total_additional_cost: number | null\n title?: I18n /** not documented, bob specific */\n value_ids?: { id?: number; identifier?: string }[]\n} & WithExtra<\n {\n user_review: { user_review: Review | undefined }\n },\n EXTRA_FIELDS\n>\n\n/**\n * SDG\n */\n\nexport type Impact = {\n certifications: I18n\n challenges: I18n\n impact: I18n\n sdgs?: ProjectSDG[]\n}\n\nexport type ProjectSDG = {\n description: I18n\n id: number\n sdg: SDG\n}\n\nexport type SDG = {\n code: string\n description: I18n\n logo: I18n\n title: I18n\n} & WithParam\n\nexport type SDGList = {\n sdgs: SDG[]\n}\n\nexport type UpdateImpact = Omit & {\n create_sdgs: {\n description: I18n\n sdg_code: string\n }[]\n update_sdgs: {\n description: I18n\n id: number\n }[]\n delete_sdgs: number[]\n}\n\n/**\n * SEARCH\n */\n\nexport type SearchQualifier = {\n channel_ids?: number[]\n city_id?: number\n country?: string\n lang?: string\n owner_id?: number\n partners?: string[]\n quality_score?: QualityScore[]\n quality_score__not?: QualityScore[]\n region_id?: number\n sort?: 'popular' | 'amount' | 'ending-soon' | 'position' | 'new' | 'staff-pick'\n status?: 'currently' | 'all' | 'success' | 'ended'\n tag_id?: number\n}\n\nexport type QualityScore = 'A' | 'B' | 'C' | 'X'\n\n/**\n * SHIPPING\n */\n\nexport type PickupPoint = {\n address?: Address\n description: I18n\n name: I18n\n orders_valid_count?: number\n /** @deprecated */\n raw_address: I18n\n id: number\n}\n\nexport type Shipping = {\n amount: number\n countries: Array | null\n id: number\n zone?: string | null\n}\n\nexport type ShippingKind = 'physical-delivery' | 'none'\n\nexport type DeliveryType = 'mondial_relay' | 'home_delivery'\n\nexport type BandType = 'priced_per_cart' | 'fixed_price'\n\nexport type ShippingZones = {\n date_delivery: string\n shipping_type: ShippingKind\n phone_number_required: boolean\n tax_address_required: boolean\n zones: ShippingZone[]\n}\n\nexport type ShippingZone = {\n areas: string[] | null\n countries: string[] | null\n all_countries: string[] | null\n is_default: boolean\n id: number\n pickup_points: PickupPoint[] | null\n home_delivery?: DeliveryMode\n mondial_relay_delivery?: DeliveryMode\n}\n\ntype DeliveryMode = {\n bands: ShippingBand[]\n id: number\n band_type: BandType\n}\n\nexport type UpdateShippingZone = Partial<{\n countries: string[]\n areas: string[]\n create_deliveries: CreateDeliveryZone[]\n update_deliveries: UpdateDeliveryZone[]\n delete_deliveries: number[]\n create_pickup_points: CreatePickupPoint[]\n update_pickup_points: (Partial & { id: number })[]\n delete_pickup_points: number[]\n}>\n\nexport type CreateShippingZone = {\n is_default: boolean\n countries: string[]\n areas: string[]\n create_deliveries: CreateDeliveryZone[]\n create_pickup_points: CreatePickupPoint[]\n}\n\nexport type UpdateDeliveryZone = Partial<{\n type: DeliveryType\n band_type: BandType\n create_bands: CreateShippingBand[]\n update_bands: UpdateShippingBand[]\n delete_bands: number[]\n}>\n\nexport type CreateDeliveryZone = {\n type: DeliveryType\n band_type: BandType\n create_bands: CreateShippingBand[]\n}\n\ntype CreatePickupPoint = { name: I18n; address: CreateAddress | null; description: I18n; position: number }\n\nexport type ShippingBand = {\n id: number\n price: number\n threshold?: number\n price_increase?: number\n}\n\nexport type CreateShippingBand = {\n price: number\n threshold?: number\n price_increase?: number\n}\n\nexport type UpdateShippingBand = Partial & { id: number }\n\nexport enum ShippingStatus {\n WAITING_SHIPPING = 'waiting-shipping',\n IN_TRANSIT = 'in-transit',\n DELIVERED = 'delivered',\n INFO_RECIEVED = 'info-received',\n FAILED_ATTEMPT = 'failed-attempt',\n RETURNED = 'returned',\n EXPIRED = 'expired',\n}\n\nexport type RewardShippingZone = ShippingZone & {\n additional_cost: number | null | undefined\n is_active: boolean\n}\n\nexport type CreateRewardShipping = {\n date_delivery: string\n phone_number_required: boolean\n shipping_type: ShippingKind\n zones?: {\n id: number\n additional_cost: number | null\n is_active: boolean\n }[]\n}\n\nexport type RewardShipping = {\n date_delivery?: string\n phone_number_required?: boolean\n shipping_type?: ShippingKind\n zones?: RewardShippingZone[]\n}\n\n/**\n * SPONSORSHIP\n */\n\nexport type Sponsor = {\n absolute_url: string\n id: number\n image: ImageResource\n link: string\n name: string\n position: number\n type: string\n user: PublicUser\n}\n\nexport type Sponsorship = {\n amount: number\n coefficient: number\n description: I18n\n id: number\n is_full: boolean\n main_color: string\n mode: SponsorshipMode\n priority: number\n project_id: number\n sponsor: Sponsor\n type?: SponsorshipType\n} & WithExtra<{ channel: { channel: Channel | undefined } }, EXTRA_FIELDS>\n\nexport enum SponsorshipMode {\n PARTICIPATES_IN = 'participates_in',\n SUPPORTED_BY = 'supported_by',\n PRIZE_WINNER = 'prize_winner',\n CRUSH = 'crush',\n COACHED_BY = 'coached_by',\n BENEFIT_OF = 'benefit_of',\n}\n\nexport enum SponsorshipType {\n AMOUNT = 'amount',\n PRIZE_WINNER = 'prize_winner',\n DOUBLED_DONATIONS = 'doubled_donations',\n CRUSH = 'crush',\n AUDIENCE = 'audience',\n}\n\n/**\n * SUBSCRIPTION\n */\n\nexport type CreateSubscription = {\n reward_id?: number\n shipping_address_id?: number\n billing_address_id?: number\n payment_method: PaymentMethod\n return_url: string\n total?: number\n}\n\nexport type Subscription = {\n billing_address?: Address\n cancelable_at?: string\n card_date_expiration?: string\n card_holder_name?: string\n card_number?: string\n created_at: string\n edit_url?: string\n id: number\n is_active_until_canceled?: boolean\n is_cancellable?: boolean\n latest_order?: Order\n next_payment_expected_at?: string\n orders_count?: number\n payment_method?: PaymentMethod\n payment_url?: string\n project?: Project\n reward?: Reward\n status: SubscriptionStatus\n total: number\n user?: Supporter & { email: string }\n}\n\nexport enum SubscriptionStatus {\n WAITING = 'waiting',\n PROCESSING = 'processing',\n SUCCEEDED = 'succeeded',\n FAILED = 'failed',\n CANCELED = 'canceled',\n}\n\n/**\n * TAG\n */\n\nexport type Tag = TagBase & {\n accent_color: string\n bg_color: string\n category: Category\n description: I18n\n subtitle: I18n | null\n is_visible: boolean\n}\n\nexport type TagBase = {\n absolute_url: string\n id: number\n name: I18n\n position: number\n slug: string\n}\n\nexport type TagList = {\n tags: Tag[]\n}\n\n/**\n * USER\n */\n\nexport type AuthenticatedUser = PublicUser & {\n birthday: string\n email: string\n nationality?: string\n personal_id_number?: string\n} & WithExtra<\n {\n contact_lang: { contact_lang: string | undefined }\n orders: { orders: Order>[] | undefined }\n projects: { projects: Project>[] | undefined }\n stats: { stats: UserStats | undefined }\n },\n EXTRA_FIELDS\n >\n\nexport type DeleteUser = {\n dry_run?: boolean\n}\n\nexport type DeleteUserResponse = {\n can_delete: {\n level: 'blocked' | 'info' | 'warning'\n link: string\n message_code:\n | 'user_scratch_project'\n | 'user_live_project_must_end'\n | 'user_project_must_wait_withdrawal_transfer'\n | 'user_live_project_contact_team'\n | 'user_completed_project_less_18_months'\n | 'user_cancelable_order'\n | 'user_not_cancelable_order'\n | 'user_finished_projets'\n }[]\n}\n\nexport type Fan = PublicUser & {\n is_anonymous?: boolean\n} & WithExtra<{ labels: { labels: UserLabel[] | undefined } }, EXTRA_FIELDS>\n\nexport type FanList = {\n fans: Fan[] | null\n}\n\nexport type Manager = PublicUser\n\nexport type PasswordStrength = 'worst' | 'bad' | 'weak' | 'good' | 'strong'\n\nexport type PublicUser = {\n absolute_url: string\n avatar: Avatar\n country: string\n date_joined: string\n description: I18n\n first_name: string\n has_avatar: boolean\n has_usable_password: boolean\n id: number\n is_active: boolean\n /** @deprecated */\n is_completed: boolean\n is_guest: boolean\n is_staff: boolean\n is_public: boolean\n lang: string\n last_login: string\n last_name: string\n location: string\n name: string\n presentation: I18n\n resource_uri: string\n role: UserRole // TODO: Marked as depending on 'role' extra field. Investigate w/ the API team in which cases this is useful or needed.\n screenname: string\n timezone: string\n username: string\n}\n\nexport type PublicUserList = {\n users: PublicUser[]\n}\n\nexport type Supporter = PublicUser & {\n is_anonymous: boolean\n} & WithExtra<\n {\n labels: { labels: UserLabel[] | undefined }\n latest_project_comment: { latest_project_comment: Comment | undefined }\n latest_project_order: { latest_project_order: Order | undefined }\n },\n EXTRA_FIELDS\n >\n\nexport type SupporterList = {\n supporters: Supporter[]\n}\n\nexport type UpdateUser = {\n birthday?: string\n contact_lang?: string\n country?: string\n description?: I18n\n email?: string\n first_name?: string\n ip_address?: string\n lang?: Lang\n last_name?: string\n location?: string\n nationality?: string\n newsletters?: string[]\n personal_id_number?: string\n presentation?: I18n\n screenname?: string\n username?: string\n}\n\nexport type UserDiscussionsStats = {\n unread_count: number\n}\n\nexport enum UserLabel {\n Captain = 'captain',\n Connector = 'connector',\n Expert = 'expert',\n Official = 'official',\n Team = 'team',\n}\n\nexport enum UserRole {\n Editor = 'editor',\n Fan = 'fan',\n Moderator = 'moderator',\n Owner = 'owner',\n Supporter = 'supporter',\n}\n\ntype UserStats = {\n created_projects_online_count: number\n followed_projects_count: number\n projects_created_count: number\n projects_currently_funding_count: number\n projects_failed_count: number\n projects_orders_count: number\n projects_succeeded_count: number\n proposals_created_count: number\n proposals_refused_count: number\n proposals_validated_count: number\n supported_projects_count: number\n}\n\nexport type UserSocialProvider = 'discord'\nexport type UnlinkSocialConnect = {\n provider: UserSocialProvider\n}\n\n/**\n * WITHDRAWAL\n */\n\nexport enum WithdrawalStatus {\n SUCCEEDED = 'succeeded',\n WAITING = 'waiting',\n PENDING = 'pending',\n FAILED = 'failed',\n}\n\nexport type Withdrawal = {\n amount: number\n created_at: string\n executed_at: string | null\n fee: number\n id: number\n invoice?: {\n gross_commission: number\n rebate: number\n reference: string\n total_commission: number\n transferred_amount: number\n total_amount: number\n url: string\n vat_amount: number\n vat_commission: number\n vat_rate: number\n }\n status: WithdrawalStatus\n updated_at: string | null\n}\n\ntype Balance = {\n amount_raised: number\n available: {\n amount: number\n tip_balance: number\n order_balance: number\n }\n pending: {\n amount: number\n }\n processing: {\n amount: number\n }\n transferred: {\n amount: number\n fee: number\n }\n}\n\nexport type WithdrawalPage = Pageable<\n {\n withdrawals: Withdrawal[]\n } & WithParam\n>\n\n/**\n * VIDEO\n */\n\n/** @deprecated Set to be removed from the Ulule API, use the `video_url` field in the ProjectUpdate payload instead. */\nexport type CreateProjectVideo = {\n language: Lang\n url: string\n}\n\nexport type VideoResource = {\n author_name: string\n author_url: string\n height: number\n html: string\n id: number\n language: string\n provider_name: string\n provider_url: string\n thumbnail_height: number\n thumbnail_url?: string\n thumbnail_width: number\n title: string\n type: string\n url: string\n version: string\n width: number\n}\n\n/**\n * REVIEW\n */\n\nexport type CreateReview = {\n name: string\n comment: string\n score: number\n}\n\nexport type UpdateReview = Partial\n\nexport type Review = {\n comment: string\n created_at: string\n id: number\n is_highlighted: boolean\n name: string\n order: Order\n project?: Project\n reward?: Variant\n score: number\n}\n\nexport type ReviewList = {\n reviews: Review[]\n}\n\nexport type ProductReviewPage = {\n avg_score?: number\n reviews: Review[]\n}\n\nexport type ShippingRateRequest = {\n country: string\n items: { quantity: number; shopify_variant_id: number }[]\n}\n\nexport type ShippingRateList = {\n rates: {\n free_shipping_threshold: number | null\n name: string\n price: number\n project: Project\n }[]\n supported_countries: string[]\n}\n\nexport enum ImportType {\n MEMBER = 'member',\n PREVIOUS_BACKER = 'previous-backer',\n NONE = 'none',\n}\n", "import type * as api from '@owl-nest/api-client/latest.ts'\nimport { t } from '@owl-nest/localize'\n\nexport function getLabel(platform: api.LinkServiceType): string {\n const labels = {\n bandcamp: t('Listen on Bandcamp'),\n bluesky: t('Follow us on Bluesky'),\n dailymotion: t('Watch us on Dailymotion'),\n discord: t('Join our Discord'),\n email: t('Contact us'),\n facebook: t('Like us on Facebook'),\n instagram: t('Follow us on Instagram'),\n linkedin: t('Connect on LinkedIn'),\n linktree: t('Visit our Linktree'),\n mastodon: t('Follow us on Mastodon'),\n soundcloud: t('Listen on Soundcloud'),\n spotify: t('Listen on Spotify'),\n threads: t('Follow us on Threads'),\n tiktok: t('Follow us on TikTok'),\n tumblr: t('Follow us on Tumblr'),\n twitch: t('Watch us on Twitch'),\n twitter: t('Follow us on Twitter'),\n vimeo: t('Watch us on Vimeo'),\n website: t('Visit our website'),\n youtube: t('Watch us on Youtube'),\n }\n\n return labels[platform]\n}\n", "const lerp = (start: number, end: number, amt: number) => (1 - amt) * start + amt * end\n\nexport const animatedScrollTo = (target: number, duration: number, start = window.pageYOffset) => {\n // in case the browser doesn't support requestAnimationFrame (opera mini)\n let startTime: number | undefined = undefined\n\n if (!window.requestAnimationFrame) {\n return window.scroll(0, target)\n }\n\n function step(timestamp?: number) {\n if (startTime === undefined) {\n startTime = timestamp\n }\n\n const time = (Number(timestamp) - Number(startTime)) / duration\n\n if (time >= 1) {\n return window.scroll(0, target)\n }\n\n window.scroll(0, lerp(start, target, time))\n window.requestAnimationFrame((timestamp) => step(timestamp))\n }\n\n step(startTime)\n}\n\nexport function scrollToHashWithOffset(hash: string, { duration = 200, offset = 0 } = {}): void {\n const element = document.querySelector(hash)\n if (element !== null) {\n animatedScrollTo(element.offsetTop - offset, duration)\n }\n}\n", "import { Shipping } from '@owl-nest/api-client/latest.ts'\nimport { t } from '@owl-nest/localize'\n\n/**\n * Maps country codes to their shipping amount for a given list of shippings\n *\n * @param shippings - List of shipping to map data from\n * @returns A map of country codes and shipping amounts\n */\nexport function mapCountryToShipping(shippings: Array | undefined): Record {\n // TODO: Probably clearer to throw\n if (!shippings) return {}\n\n return shippings.reduce((accumulator: Record, shipping: Shipping): Record => {\n const countries = shipping.countries?.reduce(\n (countryAccumulator: Record, country: string) => ({\n ...countryAccumulator,\n [country]: shipping.amount,\n }),\n {},\n )\n return { ...accumulator, ...countries }\n }, {})\n}\n\n// Formats the given label to be displayed in the countries Select component\nexport function getShippingOptionLabel(label: string, shipping: number | undefined, currencySymbol: string): string {\n const freeShipping = shipping === 0 || shipping === undefined\n return freeShipping\n ? t('%(label)s (included)', { label })\n : `${label} (+\\xa0${t('%(currency)s%(amount)s', { amount: shipping, currency: currencySymbol })})`\n}\n", "const DEFAULT_PIXEL_SIZE =\n typeof window === 'undefined' ? 16 : parseInt(window.getComputedStyle(document.documentElement).fontSize, 10) || 16\n\n/**\n * Converts a given size in pixels to rem\n *\n * @param {number|string} size Size in pixels\n * @returns {string} Size in rem\n */\nexport const rem = (size) => {\n const pixels = parseInt(size, 10)\n return `${parseFloat((pixels / DEFAULT_PIXEL_SIZE).toPrecision(7))}rem`\n}\n", "const rules = [\n // if it says it's a webview, let's go with that\n 'WebView',\n // iOS webview will be the same as safari but missing \"Safari\"\n '(iPhone|iPod|iPad)(?!.*Safari)',\n // Android Lollipop and Above: webview will be the same as native but it will contain \"wv\"\n // Android KitKat to Lollipop webview will put Version/X.X Chrome/{version}.0.0.0\n 'Android.*(;\\\\s+wv|Version/\\\\d.\\\\d\\\\s+Chrome/\\\\d+(\\\\.0){3})',\n // old chrome android webview agent\n 'Linux; U; Android'\n]\nconst webviewRegExp = new RegExp('(' + rules.join('|') + ')', 'ig')\n\nexport function isWebview(ua: string): boolean {\n return webviewRegExp.test(ua)\n}\n", "import type { Opts } from 'linkifyjs'\nimport linkifyHtml from 'linkify-html'\n\nexport function linkify(content: string): string {\n const options: Partial = {\n className: 'message-link', // FIXME: Should be a parameter\n defaultProtocol: 'http',\n events: undefined,\n format: (value: string) => {\n // TODO: FIXME: Replace with `truncate` option\n return value.length > 30 ? value.slice(0, 30) + '\u2026' : value\n },\n formatHref: {},\n ignoreTags: ['script', 'style'],\n nl2br: true,\n tagName: 'a',\n target: {\n url: '_blank',\n },\n truncate: 0,\n }\n\n return linkifyHtml(content, options)\n}\n", "import { Options, tokenize as tokenize$1 } from 'linkifyjs';\n\n/**\n * generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/entities.json\n * do not edit\n */\nvar HTML5NamedCharRefs = {\n // We don't need the complete named character reference because linkifyHtml\n // does not modify the escape sequences. We do need   so that\n // whitespace is parsed properly. Other types of whitespace should already\n // be accounted for. > < and " are also frequently relevant ones\n amp: \"&\",\n gt: \">\",\n lt: \"<\",\n nbsp: \"\u00A0\",\n quot: \"\\\"\"\n};\nvar HEXCHARCODE = /^#[xX]([A-Fa-f0-9]+)$/;\nvar CHARCODE = /^#([0-9]+)$/;\nvar NAMED = /^([A-Za-z0-9]+)$/;\nvar EntityParser = /** @class */function () {\n function EntityParser(named) {\n this.named = named;\n }\n EntityParser.prototype.parse = function (entity) {\n if (!entity) {\n return;\n }\n var matches = entity.match(HEXCHARCODE);\n if (matches) {\n return String.fromCharCode(parseInt(matches[1], 16));\n }\n matches = entity.match(CHARCODE);\n if (matches) {\n return String.fromCharCode(parseInt(matches[1], 10));\n }\n matches = entity.match(NAMED);\n if (matches) {\n return this.named[matches[1]] || \"&\" + matches[1] + \";\";\n }\n };\n return EntityParser;\n}();\nvar WSP = /[\\t\\n\\f ]/;\nvar ALPHA = /[A-Za-z]/;\nvar CRLF = /\\r\\n?/g;\nfunction isSpace(char) {\n return WSP.test(char);\n}\nfunction isAlpha(char) {\n return ALPHA.test(char);\n}\nfunction preprocessInput(input) {\n return input.replace(CRLF, '\\n');\n}\nvar EventedTokenizer = /** @class */function () {\n function EventedTokenizer(delegate, entityParser, mode) {\n if (mode === void 0) {\n mode = 'precompile';\n }\n this.delegate = delegate;\n this.entityParser = entityParser;\n this.mode = mode;\n this.state = \"beforeData\" /* beforeData */;\n this.line = -1;\n this.column = -1;\n this.input = '';\n this.index = -1;\n this.tagNameBuffer = '';\n this.states = {\n beforeData: function () {\n var char = this.peek();\n if (char === '<' && !this.isIgnoredEndTag()) {\n this.transitionTo(\"tagOpen\" /* tagOpen */);\n this.markTagStart();\n this.consume();\n } else {\n if (this.mode === 'precompile' && char === '\\n') {\n var tag = this.tagNameBuffer.toLowerCase();\n if (tag === 'pre' || tag === 'textarea') {\n this.consume();\n }\n }\n this.transitionTo(\"data\" /* data */);\n this.delegate.beginData();\n }\n },\n data: function () {\n var char = this.peek();\n var tag = this.tagNameBuffer;\n if (char === '<' && !this.isIgnoredEndTag()) {\n this.delegate.finishData();\n this.transitionTo(\"tagOpen\" /* tagOpen */);\n this.markTagStart();\n this.consume();\n } else if (char === '&' && tag !== 'script' && tag !== 'style') {\n this.consume();\n this.delegate.appendToData(this.consumeCharRef() || '&');\n } else {\n this.consume();\n this.delegate.appendToData(char);\n }\n },\n tagOpen: function () {\n var char = this.consume();\n if (char === '!') {\n this.transitionTo(\"markupDeclarationOpen\" /* markupDeclarationOpen */);\n } else if (char === '/') {\n this.transitionTo(\"endTagOpen\" /* endTagOpen */);\n } else if (char === '@' || char === ':' || isAlpha(char)) {\n this.transitionTo(\"tagName\" /* tagName */);\n this.tagNameBuffer = '';\n this.delegate.beginStartTag();\n this.appendToTagName(char);\n }\n },\n markupDeclarationOpen: function () {\n var char = this.consume();\n if (char === '-' && this.peek() === '-') {\n this.consume();\n this.transitionTo(\"commentStart\" /* commentStart */);\n this.delegate.beginComment();\n } else {\n var maybeDoctype = char.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase();\n if (maybeDoctype === 'DOCTYPE') {\n this.consume();\n this.consume();\n this.consume();\n this.consume();\n this.consume();\n this.consume();\n this.transitionTo(\"doctype\" /* doctype */);\n if (this.delegate.beginDoctype) this.delegate.beginDoctype();\n }\n }\n },\n doctype: function () {\n var char = this.consume();\n if (isSpace(char)) {\n this.transitionTo(\"beforeDoctypeName\" /* beforeDoctypeName */);\n }\n },\n beforeDoctypeName: function () {\n var char = this.consume();\n if (isSpace(char)) {\n return;\n } else {\n this.transitionTo(\"doctypeName\" /* doctypeName */);\n if (this.delegate.appendToDoctypeName) this.delegate.appendToDoctypeName(char.toLowerCase());\n }\n },\n doctypeName: function () {\n var char = this.consume();\n if (isSpace(char)) {\n this.transitionTo(\"afterDoctypeName\" /* afterDoctypeName */);\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n if (this.delegate.appendToDoctypeName) this.delegate.appendToDoctypeName(char.toLowerCase());\n }\n },\n afterDoctypeName: function () {\n var char = this.consume();\n if (isSpace(char)) {\n return;\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n var nextSixChars = char.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase();\n var isPublic = nextSixChars.toUpperCase() === 'PUBLIC';\n var isSystem = nextSixChars.toUpperCase() === 'SYSTEM';\n if (isPublic || isSystem) {\n this.consume();\n this.consume();\n this.consume();\n this.consume();\n this.consume();\n this.consume();\n }\n if (isPublic) {\n this.transitionTo(\"afterDoctypePublicKeyword\" /* afterDoctypePublicKeyword */);\n } else if (isSystem) {\n this.transitionTo(\"afterDoctypeSystemKeyword\" /* afterDoctypeSystemKeyword */);\n }\n }\n },\n afterDoctypePublicKeyword: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.transitionTo(\"beforeDoctypePublicIdentifier\" /* beforeDoctypePublicIdentifier */);\n this.consume();\n } else if (char === '\"') {\n this.transitionTo(\"doctypePublicIdentifierDoubleQuoted\" /* doctypePublicIdentifierDoubleQuoted */);\n this.consume();\n } else if (char === \"'\") {\n this.transitionTo(\"doctypePublicIdentifierSingleQuoted\" /* doctypePublicIdentifierSingleQuoted */);\n this.consume();\n } else if (char === '>') {\n this.consume();\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n }\n },\n doctypePublicIdentifierDoubleQuoted: function () {\n var char = this.consume();\n if (char === '\"') {\n this.transitionTo(\"afterDoctypePublicIdentifier\" /* afterDoctypePublicIdentifier */);\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n if (this.delegate.appendToDoctypePublicIdentifier) this.delegate.appendToDoctypePublicIdentifier(char);\n }\n },\n doctypePublicIdentifierSingleQuoted: function () {\n var char = this.consume();\n if (char === \"'\") {\n this.transitionTo(\"afterDoctypePublicIdentifier\" /* afterDoctypePublicIdentifier */);\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n if (this.delegate.appendToDoctypePublicIdentifier) this.delegate.appendToDoctypePublicIdentifier(char);\n }\n },\n afterDoctypePublicIdentifier: function () {\n var char = this.consume();\n if (isSpace(char)) {\n this.transitionTo(\"betweenDoctypePublicAndSystemIdentifiers\" /* betweenDoctypePublicAndSystemIdentifiers */);\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else if (char === '\"') {\n this.transitionTo(\"doctypeSystemIdentifierDoubleQuoted\" /* doctypeSystemIdentifierDoubleQuoted */);\n } else if (char === \"'\") {\n this.transitionTo(\"doctypeSystemIdentifierSingleQuoted\" /* doctypeSystemIdentifierSingleQuoted */);\n }\n },\n betweenDoctypePublicAndSystemIdentifiers: function () {\n var char = this.consume();\n if (isSpace(char)) {\n return;\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else if (char === '\"') {\n this.transitionTo(\"doctypeSystemIdentifierDoubleQuoted\" /* doctypeSystemIdentifierDoubleQuoted */);\n } else if (char === \"'\") {\n this.transitionTo(\"doctypeSystemIdentifierSingleQuoted\" /* doctypeSystemIdentifierSingleQuoted */);\n }\n },\n doctypeSystemIdentifierDoubleQuoted: function () {\n var char = this.consume();\n if (char === '\"') {\n this.transitionTo(\"afterDoctypeSystemIdentifier\" /* afterDoctypeSystemIdentifier */);\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n if (this.delegate.appendToDoctypeSystemIdentifier) this.delegate.appendToDoctypeSystemIdentifier(char);\n }\n },\n doctypeSystemIdentifierSingleQuoted: function () {\n var char = this.consume();\n if (char === \"'\") {\n this.transitionTo(\"afterDoctypeSystemIdentifier\" /* afterDoctypeSystemIdentifier */);\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n if (this.delegate.appendToDoctypeSystemIdentifier) this.delegate.appendToDoctypeSystemIdentifier(char);\n }\n },\n afterDoctypeSystemIdentifier: function () {\n var char = this.consume();\n if (isSpace(char)) {\n return;\n } else if (char === '>') {\n if (this.delegate.endDoctype) this.delegate.endDoctype();\n this.transitionTo(\"beforeData\" /* beforeData */);\n }\n },\n commentStart: function () {\n var char = this.consume();\n if (char === '-') {\n this.transitionTo(\"commentStartDash\" /* commentStartDash */);\n } else if (char === '>') {\n this.delegate.finishComment();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.delegate.appendToCommentData(char);\n this.transitionTo(\"comment\" /* comment */);\n }\n },\n commentStartDash: function () {\n var char = this.consume();\n if (char === '-') {\n this.transitionTo(\"commentEnd\" /* commentEnd */);\n } else if (char === '>') {\n this.delegate.finishComment();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.delegate.appendToCommentData('-');\n this.transitionTo(\"comment\" /* comment */);\n }\n },\n comment: function () {\n var char = this.consume();\n if (char === '-') {\n this.transitionTo(\"commentEndDash\" /* commentEndDash */);\n } else {\n this.delegate.appendToCommentData(char);\n }\n },\n commentEndDash: function () {\n var char = this.consume();\n if (char === '-') {\n this.transitionTo(\"commentEnd\" /* commentEnd */);\n } else {\n this.delegate.appendToCommentData('-' + char);\n this.transitionTo(\"comment\" /* comment */);\n }\n },\n commentEnd: function () {\n var char = this.consume();\n if (char === '>') {\n this.delegate.finishComment();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.delegate.appendToCommentData('--' + char);\n this.transitionTo(\"comment\" /* comment */);\n }\n },\n tagName: function () {\n var char = this.consume();\n if (isSpace(char)) {\n this.transitionTo(\"beforeAttributeName\" /* beforeAttributeName */);\n } else if (char === '/') {\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n } else if (char === '>') {\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.appendToTagName(char);\n }\n },\n endTagName: function () {\n var char = this.consume();\n if (isSpace(char)) {\n this.transitionTo(\"beforeAttributeName\" /* beforeAttributeName */);\n this.tagNameBuffer = '';\n } else if (char === '/') {\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n this.tagNameBuffer = '';\n } else if (char === '>') {\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n this.tagNameBuffer = '';\n } else {\n this.appendToTagName(char);\n }\n },\n beforeAttributeName: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.consume();\n return;\n } else if (char === '/') {\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n this.consume();\n } else if (char === '>') {\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else if (char === '=') {\n this.delegate.reportSyntaxError('attribute name cannot start with equals sign');\n this.transitionTo(\"attributeName\" /* attributeName */);\n this.delegate.beginAttribute();\n this.consume();\n this.delegate.appendToAttributeName(char);\n } else {\n this.transitionTo(\"attributeName\" /* attributeName */);\n this.delegate.beginAttribute();\n }\n },\n attributeName: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.transitionTo(\"afterAttributeName\" /* afterAttributeName */);\n this.consume();\n } else if (char === '/') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n } else if (char === '=') {\n this.transitionTo(\"beforeAttributeValue\" /* beforeAttributeValue */);\n this.consume();\n } else if (char === '>') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else if (char === '\"' || char === \"'\" || char === '<') {\n this.delegate.reportSyntaxError(char + ' is not a valid character within attribute names');\n this.consume();\n this.delegate.appendToAttributeName(char);\n } else {\n this.consume();\n this.delegate.appendToAttributeName(char);\n }\n },\n afterAttributeName: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.consume();\n return;\n } else if (char === '/') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n } else if (char === '=') {\n this.consume();\n this.transitionTo(\"beforeAttributeValue\" /* beforeAttributeValue */);\n } else if (char === '>') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.transitionTo(\"attributeName\" /* attributeName */);\n this.delegate.beginAttribute();\n this.consume();\n this.delegate.appendToAttributeName(char);\n }\n },\n beforeAttributeValue: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.consume();\n } else if (char === '\"') {\n this.transitionTo(\"attributeValueDoubleQuoted\" /* attributeValueDoubleQuoted */);\n this.delegate.beginAttributeValue(true);\n this.consume();\n } else if (char === \"'\") {\n this.transitionTo(\"attributeValueSingleQuoted\" /* attributeValueSingleQuoted */);\n this.delegate.beginAttributeValue(true);\n this.consume();\n } else if (char === '>') {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.transitionTo(\"attributeValueUnquoted\" /* attributeValueUnquoted */);\n this.delegate.beginAttributeValue(false);\n this.consume();\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueDoubleQuoted: function () {\n var char = this.consume();\n if (char === '\"') {\n this.delegate.finishAttributeValue();\n this.transitionTo(\"afterAttributeValueQuoted\" /* afterAttributeValueQuoted */);\n } else if (char === '&') {\n this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');\n } else {\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueSingleQuoted: function () {\n var char = this.consume();\n if (char === \"'\") {\n this.delegate.finishAttributeValue();\n this.transitionTo(\"afterAttributeValueQuoted\" /* afterAttributeValueQuoted */);\n } else if (char === '&') {\n this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');\n } else {\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueUnquoted: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"beforeAttributeName\" /* beforeAttributeName */);\n } else if (char === '/') {\n this.delegate.finishAttributeValue();\n this.consume();\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n } else if (char === '&') {\n this.consume();\n this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');\n } else if (char === '>') {\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.consume();\n this.delegate.appendToAttributeValue(char);\n }\n },\n afterAttributeValueQuoted: function () {\n var char = this.peek();\n if (isSpace(char)) {\n this.consume();\n this.transitionTo(\"beforeAttributeName\" /* beforeAttributeName */);\n } else if (char === '/') {\n this.consume();\n this.transitionTo(\"selfClosingStartTag\" /* selfClosingStartTag */);\n } else if (char === '>') {\n this.consume();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.transitionTo(\"beforeAttributeName\" /* beforeAttributeName */);\n }\n },\n selfClosingStartTag: function () {\n var char = this.peek();\n if (char === '>') {\n this.consume();\n this.delegate.markTagAsSelfClosing();\n this.delegate.finishTag();\n this.transitionTo(\"beforeData\" /* beforeData */);\n } else {\n this.transitionTo(\"beforeAttributeName\" /* beforeAttributeName */);\n }\n },\n endTagOpen: function () {\n var char = this.consume();\n if (char === '@' || char === ':' || isAlpha(char)) {\n this.transitionTo(\"endTagName\" /* endTagName */);\n this.tagNameBuffer = '';\n this.delegate.beginEndTag();\n this.appendToTagName(char);\n }\n }\n };\n this.reset();\n }\n EventedTokenizer.prototype.reset = function () {\n this.transitionTo(\"beforeData\" /* beforeData */);\n this.input = '';\n this.tagNameBuffer = '';\n this.index = 0;\n this.line = 1;\n this.column = 0;\n this.delegate.reset();\n };\n EventedTokenizer.prototype.transitionTo = function (state) {\n this.state = state;\n };\n EventedTokenizer.prototype.tokenize = function (input) {\n this.reset();\n this.tokenizePart(input);\n this.tokenizeEOF();\n };\n EventedTokenizer.prototype.tokenizePart = function (input) {\n this.input += preprocessInput(input);\n while (this.index < this.input.length) {\n var handler = this.states[this.state];\n if (handler !== undefined) {\n handler.call(this);\n } else {\n throw new Error(\"unhandled state \" + this.state);\n }\n }\n };\n EventedTokenizer.prototype.tokenizeEOF = function () {\n this.flushData();\n };\n EventedTokenizer.prototype.flushData = function () {\n if (this.state === 'data') {\n this.delegate.finishData();\n this.transitionTo(\"beforeData\" /* beforeData */);\n }\n };\n EventedTokenizer.prototype.peek = function () {\n return this.input.charAt(this.index);\n };\n EventedTokenizer.prototype.consume = function () {\n var char = this.peek();\n this.index++;\n if (char === '\\n') {\n this.line++;\n this.column = 0;\n } else {\n this.column++;\n }\n return char;\n };\n EventedTokenizer.prototype.consumeCharRef = function () {\n var endIndex = this.input.indexOf(';', this.index);\n if (endIndex === -1) {\n return;\n }\n var entity = this.input.slice(this.index, endIndex);\n var chars = this.entityParser.parse(entity);\n if (chars) {\n var count = entity.length;\n // consume the entity chars\n while (count) {\n this.consume();\n count--;\n }\n // consume the `;`\n this.consume();\n return chars;\n }\n };\n EventedTokenizer.prototype.markTagStart = function () {\n this.delegate.tagOpen();\n };\n EventedTokenizer.prototype.appendToTagName = function (char) {\n this.tagNameBuffer += char;\n this.delegate.appendToTagName(char);\n };\n EventedTokenizer.prototype.isIgnoredEndTag = function () {\n var tag = this.tagNameBuffer;\n return tag === 'title' && this.input.substring(this.index, this.index + 8) !== '' || tag === 'style' && this.input.substring(this.index, this.index + 8) !== '' || tag === 'script' && this.input.substring(this.index, this.index + 9) !== '';\n };\n return EventedTokenizer;\n}();\nvar Tokenizer = /** @class */function () {\n function Tokenizer(entityParser, options) {\n if (options === void 0) {\n options = {};\n }\n this.options = options;\n this.token = null;\n this.startLine = 1;\n this.startColumn = 0;\n this.tokens = [];\n this.tokenizer = new EventedTokenizer(this, entityParser, options.mode);\n this._currentAttribute = undefined;\n }\n Tokenizer.prototype.tokenize = function (input) {\n this.tokens = [];\n this.tokenizer.tokenize(input);\n return this.tokens;\n };\n Tokenizer.prototype.tokenizePart = function (input) {\n this.tokens = [];\n this.tokenizer.tokenizePart(input);\n return this.tokens;\n };\n Tokenizer.prototype.tokenizeEOF = function () {\n this.tokens = [];\n this.tokenizer.tokenizeEOF();\n return this.tokens[0];\n };\n Tokenizer.prototype.reset = function () {\n this.token = null;\n this.startLine = 1;\n this.startColumn = 0;\n };\n Tokenizer.prototype.current = function () {\n var token = this.token;\n if (token === null) {\n throw new Error('token was unexpectedly null');\n }\n if (arguments.length === 0) {\n return token;\n }\n for (var i = 0; i < arguments.length; i++) {\n if (token.type === arguments[i]) {\n return token;\n }\n }\n throw new Error(\"token type was unexpectedly \" + token.type);\n };\n Tokenizer.prototype.push = function (token) {\n this.token = token;\n this.tokens.push(token);\n };\n Tokenizer.prototype.currentAttribute = function () {\n return this._currentAttribute;\n };\n Tokenizer.prototype.addLocInfo = function () {\n if (this.options.loc) {\n this.current().loc = {\n start: {\n line: this.startLine,\n column: this.startColumn\n },\n end: {\n line: this.tokenizer.line,\n column: this.tokenizer.column\n }\n };\n }\n this.startLine = this.tokenizer.line;\n this.startColumn = this.tokenizer.column;\n };\n // Data\n Tokenizer.prototype.beginDoctype = function () {\n this.push({\n type: \"Doctype\" /* Doctype */,\n name: ''\n });\n };\n Tokenizer.prototype.appendToDoctypeName = function (char) {\n this.current(\"Doctype\" /* Doctype */).name += char;\n };\n Tokenizer.prototype.appendToDoctypePublicIdentifier = function (char) {\n var doctype = this.current(\"Doctype\" /* Doctype */);\n if (doctype.publicIdentifier === undefined) {\n doctype.publicIdentifier = char;\n } else {\n doctype.publicIdentifier += char;\n }\n };\n Tokenizer.prototype.appendToDoctypeSystemIdentifier = function (char) {\n var doctype = this.current(\"Doctype\" /* Doctype */);\n if (doctype.systemIdentifier === undefined) {\n doctype.systemIdentifier = char;\n } else {\n doctype.systemIdentifier += char;\n }\n };\n Tokenizer.prototype.endDoctype = function () {\n this.addLocInfo();\n };\n Tokenizer.prototype.beginData = function () {\n this.push({\n type: \"Chars\" /* Chars */,\n chars: ''\n });\n };\n Tokenizer.prototype.appendToData = function (char) {\n this.current(\"Chars\" /* Chars */).chars += char;\n };\n Tokenizer.prototype.finishData = function () {\n this.addLocInfo();\n };\n // Comment\n Tokenizer.prototype.beginComment = function () {\n this.push({\n type: \"Comment\" /* Comment */,\n chars: ''\n });\n };\n Tokenizer.prototype.appendToCommentData = function (char) {\n this.current(\"Comment\" /* Comment */).chars += char;\n };\n Tokenizer.prototype.finishComment = function () {\n this.addLocInfo();\n };\n // Tags - basic\n Tokenizer.prototype.tagOpen = function () {};\n Tokenizer.prototype.beginStartTag = function () {\n this.push({\n type: \"StartTag\" /* StartTag */,\n tagName: '',\n attributes: [],\n selfClosing: false\n });\n };\n Tokenizer.prototype.beginEndTag = function () {\n this.push({\n type: \"EndTag\" /* EndTag */,\n tagName: ''\n });\n };\n Tokenizer.prototype.finishTag = function () {\n this.addLocInfo();\n };\n Tokenizer.prototype.markTagAsSelfClosing = function () {\n this.current(\"StartTag\" /* StartTag */).selfClosing = true;\n };\n // Tags - name\n Tokenizer.prototype.appendToTagName = function (char) {\n this.current(\"StartTag\" /* StartTag */, \"EndTag\" /* EndTag */).tagName += char;\n };\n // Tags - attributes\n Tokenizer.prototype.beginAttribute = function () {\n this._currentAttribute = ['', '', false];\n };\n Tokenizer.prototype.appendToAttributeName = function (char) {\n this.currentAttribute()[0] += char;\n };\n Tokenizer.prototype.beginAttributeValue = function (isQuoted) {\n this.currentAttribute()[2] = isQuoted;\n };\n Tokenizer.prototype.appendToAttributeValue = function (char) {\n this.currentAttribute()[1] += char;\n };\n Tokenizer.prototype.finishAttributeValue = function () {\n this.current(\"StartTag\" /* StartTag */).attributes.push(this._currentAttribute);\n };\n Tokenizer.prototype.reportSyntaxError = function (message) {\n this.current().syntaxError = message;\n };\n return Tokenizer;\n}();\nfunction tokenize(input, options) {\n var tokenizer = new Tokenizer(new EntityParser(HTML5NamedCharRefs), options);\n return tokenizer.tokenize(input);\n}\n\nconst LinkifyResult = 'LinkifyResult';\nconst StartTag = 'StartTag';\nconst EndTag = 'EndTag';\nconst Chars = 'Chars';\nconst Comment = 'Comment';\nconst Doctype = 'Doctype';\n\n/**\n * @param {string} str html string to link\n * @param {import('linkifyjs').Opts} [opts] linkify options\n * @returns {string} resulting string\n */\nfunction linkifyHtml(str, opts = {}) {\n // `tokens` and `token` in this section refer to tokens generated by the\n // HTML parser, not linkify's parser\n const tokens = tokenize(str);\n const linkifiedTokens = [];\n const linkified = [];\n const options = new Options(opts, defaultRender);\n\n // Linkify the tokens given by the parser\n for (let i = 0; i < tokens.length; i++) {\n const token = tokens[i];\n if (token.type === StartTag) {\n linkifiedTokens.push(token);\n\n // Ignore all the contents of ignored tags\n const tagName = token.tagName.toUpperCase();\n const isIgnored = tagName === 'A' || options.ignoreTags.indexOf(tagName) >= 0;\n if (!isIgnored) {\n continue;\n }\n let preskipLen = linkifiedTokens.length;\n skipTagTokens(tagName, tokens, ++i, linkifiedTokens);\n i += linkifiedTokens.length - preskipLen - 1;\n } else if (token.type !== Chars) {\n // Skip this token, it's not important\n linkifiedTokens.push(token);\n } else {\n // Valid text token, linkify it!\n const linkifedChars = linkifyChars(token.chars, options);\n linkifiedTokens.push.apply(linkifiedTokens, linkifedChars);\n }\n }\n\n // Convert the tokens back into a string\n for (let i = 0; i < linkifiedTokens.length; i++) {\n const token = linkifiedTokens[i];\n switch (token.type) {\n case LinkifyResult:\n linkified.push(token.rendered);\n break;\n case StartTag:\n {\n let link = '<' + token.tagName;\n if (token.attributes.length > 0) {\n link += ' ' + attributeArrayToStrings(token.attributes).join(' ');\n }\n if (token.selfClosing) {\n link += ' /';\n }\n link += '>';\n linkified.push(link);\n break;\n }\n case EndTag:\n linkified.push(``);\n break;\n case Chars:\n linkified.push(escapeText(token.chars));\n break;\n case Comment:\n linkified.push(``);\n break;\n case Doctype:\n {\n let doctype = `';\n linkified.push(doctype);\n break;\n }\n }\n }\n return linkified.join('');\n}\n\n/**\n\t`tokens` and `token` in this section referes to tokens returned by\n\t`linkify.tokenize`. `linkified` will contain HTML Parser-style tokens\n\t@param {string}\n\t@param {import('linkifyjs').Options}\n*/\nfunction linkifyChars(str, options) {\n const tokens = tokenize$1(str);\n const result = [];\n for (let i = 0; i < tokens.length; i++) {\n const token = tokens[i];\n if (token.t === 'nl' && options.get('nl2br')) {\n result.push({\n type: StartTag,\n tagName: 'br',\n attributes: [],\n selfClosing: true\n });\n } else if (!token.isLink || !options.check(token)) {\n result.push({\n type: Chars,\n chars: token.toString()\n });\n } else {\n result.push({\n type: LinkifyResult,\n rendered: options.render(token)\n });\n }\n }\n return result;\n}\n\n/**\n\tReturns a list of tokens skipped until the closing tag of tagName.\n\n\t* `tagName` is the closing tag which will prompt us to stop skipping\n\t* `tokens` is the array of tokens generated by HTML5Tokenizer which\n\t* `i` is the index immediately after the opening tag to skip\n\t* `skippedTokens` is an array which skipped tokens are being pushed into\n\n\tCaveats\n\n\t* Assumes that i is the first token after the given opening tagName\n\t* The closing tag will be skipped, but nothing after it\n\t* Will track whether there is a nested tag of the same type\n*/\nfunction skipTagTokens(tagName, tokens, i, skippedTokens) {\n // number of tokens of this type on the [fictional] stack\n let stackCount = 1;\n while (i < tokens.length && stackCount > 0) {\n let token = tokens[i];\n if (token.type === StartTag && token.tagName.toUpperCase() === tagName) {\n // Nested tag of the same type, \"add to stack\"\n stackCount++;\n } else if (token.type === EndTag && token.tagName.toUpperCase() === tagName) {\n // Closing tag\n stackCount--;\n }\n skippedTokens.push(token);\n i++;\n }\n\n // Note that if stackCount > 0 here, the HTML is probably invalid\n return skippedTokens;\n}\nfunction defaultRender({\n tagName,\n attributes,\n content\n}) {\n return `<${tagName} ${attributesToString(attributes)}>${escapeText(content)}`;\n}\nfunction escapeText(text) {\n return text.replace(//g, '>');\n}\nfunction escapeAttr(attr) {\n return attr.replace(/\"/g, '"');\n}\nfunction attributesToString(attributes) {\n const result = [];\n for (const attr in attributes) {\n const val = attributes[attr] + '';\n result.push(`${attr}=\"${escapeAttr(val)}\"`);\n }\n return result.join(' ');\n}\nfunction attributeArrayToStrings(attrs) {\n const attrStrs = [];\n for (let i = 0; i < attrs.length; i++) {\n const name = attrs[i][0];\n const value = attrs[i][1] + '';\n attrStrs.push(`${name}=\"${escapeAttr(value)}\"`);\n }\n return attrStrs;\n}\n\nexport { linkifyHtml as default };\n", "// THIS FILE IS AUTOMATICALLY GENERATED DO NOT EDIT DIRECTLY\n// See update-tlds.js for encoding/decoding format\n// https://data.iana.org/TLD/tlds-alpha-by-domain.txt\nconst encodedTlds = 'aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\u00F6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2';\n// Internationalized domain names containing non-ASCII\nconst encodedUtlds = '\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2';\n\n/**\n * @template A\n * @template B\n * @param {A} target\n * @param {B} properties\n * @return {A & B}\n */\nconst assign = (target, properties) => {\n for (const key in properties) {\n target[key] = properties[key];\n }\n return target;\n};\n\n/**\n * Finite State Machine generation utilities\n */\n\n/**\n * @template T\n * @typedef {{ [group: string]: T[] }} Collections\n */\n\n/**\n * @typedef {{ [group: string]: true }} Flags\n */\n\n// Keys in scanner Collections instances\nconst numeric = 'numeric';\nconst ascii = 'ascii';\nconst alpha = 'alpha';\nconst asciinumeric = 'asciinumeric';\nconst alphanumeric = 'alphanumeric';\nconst domain = 'domain';\nconst emoji = 'emoji';\nconst scheme = 'scheme';\nconst slashscheme = 'slashscheme';\nconst whitespace = 'whitespace';\n\n/**\n * @template T\n * @param {string} name\n * @param {Collections} groups to register in\n * @returns {T[]} Current list of tokens in the given collection\n */\nfunction registerGroup(name, groups) {\n if (!(name in groups)) {\n groups[name] = [];\n }\n return groups[name];\n}\n\n/**\n * @template T\n * @param {T} t token to add\n * @param {Collections} groups\n * @param {Flags} flags\n */\nfunction addToGroups(t, flags, groups) {\n if (flags[numeric]) {\n flags[asciinumeric] = true;\n flags[alphanumeric] = true;\n }\n if (flags[ascii]) {\n flags[asciinumeric] = true;\n flags[alpha] = true;\n }\n if (flags[asciinumeric]) {\n flags[alphanumeric] = true;\n }\n if (flags[alpha]) {\n flags[alphanumeric] = true;\n }\n if (flags[alphanumeric]) {\n flags[domain] = true;\n }\n if (flags[emoji]) {\n flags[domain] = true;\n }\n for (const k in flags) {\n const group = registerGroup(k, groups);\n if (group.indexOf(t) < 0) {\n group.push(t);\n }\n }\n}\n\n/**\n * @template T\n * @param {T} t token to check\n * @param {Collections} groups\n * @returns {Flags} group flags that contain this token\n */\nfunction flagsForToken(t, groups) {\n const result = {};\n for (const c in groups) {\n if (groups[c].indexOf(t) >= 0) {\n result[c] = true;\n }\n }\n return result;\n}\n\n/**\n * @template T\n * @typedef {null | T } Transition\n */\n\n/**\n * Define a basic state machine state. j is the list of character transitions,\n * jr is the list of regex-match transitions, jd is the default state to\n * transition to t is the accepting token type, if any. If this is the terminal\n * state, then it does not emit a token.\n *\n * The template type T represents the type of the token this state accepts. This\n * should be a string (such as of the token exports in `text.js`) or a\n * MultiToken subclass (from `multi.js`)\n *\n * @template T\n * @param {T} [token] Token that this state emits\n */\nfunction State(token) {\n if (token === void 0) {\n token = null;\n }\n // this.n = null; // DEBUG: State name\n /** @type {{ [input: string]: State }} j */\n this.j = {}; // IMPLEMENTATION 1\n // this.j = []; // IMPLEMENTATION 2\n /** @type {[RegExp, State][]} jr */\n this.jr = [];\n /** @type {?State} jd */\n this.jd = null;\n /** @type {?T} t */\n this.t = token;\n}\n\n/**\n * Scanner token groups\n * @type Collections\n */\nState.groups = {};\nState.prototype = {\n accepts() {\n return !!this.t;\n },\n /**\n * Follow an existing transition from the given input to the next state.\n * Does not mutate.\n * @param {string} input character or token type to transition on\n * @returns {?State} the next state, if any\n */\n go(input) {\n const state = this;\n const nextState = state.j[input];\n if (nextState) {\n return nextState;\n }\n for (let i = 0; i < state.jr.length; i++) {\n const regex = state.jr[i][0];\n const nextState = state.jr[i][1]; // note: might be empty to prevent default jump\n if (nextState && regex.test(input)) {\n return nextState;\n }\n }\n // Nowhere left to jump! Return default, if any\n return state.jd;\n },\n /**\n * Whether the state has a transition for the given input. Set the second\n * argument to true to only look for an exact match (and not a default or\n * regular-expression-based transition)\n * @param {string} input\n * @param {boolean} exactOnly\n */\n has(input, exactOnly) {\n if (exactOnly === void 0) {\n exactOnly = false;\n }\n return exactOnly ? input in this.j : !!this.go(input);\n },\n /**\n * Short for \"transition all\"; create a transition from the array of items\n * in the given list to the same final resulting state.\n * @param {string | string[]} inputs Group of inputs to transition on\n * @param {Transition | State} [next] Transition options\n * @param {Flags} [flags] Collections flags to add token to\n * @param {Collections} [groups] Master list of token groups\n */\n ta(inputs, next, flags, groups) {\n for (let i = 0; i < inputs.length; i++) {\n this.tt(inputs[i], next, flags, groups);\n }\n },\n /**\n * Short for \"take regexp transition\"; defines a transition for this state\n * when it encounters a token which matches the given regular expression\n * @param {RegExp} regexp Regular expression transition (populate first)\n * @param {T | State} [next] Transition options\n * @param {Flags} [flags] Collections flags to add token to\n * @param {Collections} [groups] Master list of token groups\n * @returns {State} taken after the given input\n */\n tr(regexp, next, flags, groups) {\n groups = groups || State.groups;\n let nextState;\n if (next && next.j) {\n nextState = next;\n } else {\n // Token with maybe token groups\n nextState = new State(next);\n if (flags && groups) {\n addToGroups(next, flags, groups);\n }\n }\n this.jr.push([regexp, nextState]);\n return nextState;\n },\n /**\n * Short for \"take transitions\", will take as many sequential transitions as\n * the length of the given input and returns the\n * resulting final state.\n * @param {string | string[]} input\n * @param {T | State} [next] Transition options\n * @param {Flags} [flags] Collections flags to add token to\n * @param {Collections} [groups] Master list of token groups\n * @returns {State} taken after the given input\n */\n ts(input, next, flags, groups) {\n let state = this;\n const len = input.length;\n if (!len) {\n return state;\n }\n for (let i = 0; i < len - 1; i++) {\n state = state.tt(input[i]);\n }\n return state.tt(input[len - 1], next, flags, groups);\n },\n /**\n * Short for \"take transition\", this is a method for building/working with\n * state machines.\n *\n * If a state already exists for the given input, returns it.\n *\n * If a token is specified, that state will emit that token when reached by\n * the linkify engine.\n *\n * If no state exists, it will be initialized with some default transitions\n * that resemble existing default transitions.\n *\n * If a state is given for the second argument, that state will be\n * transitioned to on the given input regardless of what that input\n * previously did.\n *\n * Specify a token group flags to define groups that this token belongs to.\n * The token will be added to corresponding entires in the given groups\n * object.\n *\n * @param {string} input character, token type to transition on\n * @param {T | State} [next] Transition options\n * @param {Flags} [flags] Collections flags to add token to\n * @param {Collections} [groups] Master list of groups\n * @returns {State} taken after the given input\n */\n tt(input, next, flags, groups) {\n groups = groups || State.groups;\n const state = this;\n\n // Check if existing state given, just a basic transition\n if (next && next.j) {\n state.j[input] = next;\n return next;\n }\n const t = next;\n\n // Take the transition with the usual default mechanisms and use that as\n // a template for creating the next state\n let nextState,\n templateState = state.go(input);\n if (templateState) {\n nextState = new State();\n assign(nextState.j, templateState.j);\n nextState.jr.push.apply(nextState.jr, templateState.jr);\n nextState.jd = templateState.jd;\n nextState.t = templateState.t;\n } else {\n nextState = new State();\n }\n if (t) {\n // Ensure newly token is in the same groups as the old token\n if (groups) {\n if (nextState.t && typeof nextState.t === 'string') {\n const allFlags = assign(flagsForToken(nextState.t, groups), flags);\n addToGroups(t, allFlags, groups);\n } else if (flags) {\n addToGroups(t, flags, groups);\n }\n }\n nextState.t = t; // overwrite anything that was previously there\n }\n\n state.j[input] = nextState;\n return nextState;\n }\n};\n\n// Helper functions to improve minification (not exported outside linkifyjs module)\n\n/**\n * @template T\n * @param {State} state\n * @param {string | string[]} input\n * @param {Flags} [flags]\n * @param {Collections} [groups]\n */\nconst ta = (state, input, next, flags, groups) => state.ta(input, next, flags, groups);\n\n/**\n * @template T\n * @param {State} state\n * @param {RegExp} regexp\n * @param {T | State} [next]\n * @param {Flags} [flags]\n * @param {Collections} [groups]\n */\nconst tr = (state, regexp, next, flags, groups) => state.tr(regexp, next, flags, groups);\n\n/**\n * @template T\n * @param {State} state\n * @param {string | string[]} input\n * @param {T | State} [next]\n * @param {Flags} [flags]\n * @param {Collections} [groups]\n */\nconst ts = (state, input, next, flags, groups) => state.ts(input, next, flags, groups);\n\n/**\n * @template T\n * @param {State} state\n * @param {string} input\n * @param {T | State} [next]\n * @param {Collections} [groups]\n * @param {Flags} [flags]\n */\nconst tt = (state, input, next, flags, groups) => state.tt(input, next, flags, groups);\n\n/******************************************************************************\nText Tokens\nIdentifiers for token outputs from the regexp scanner\n******************************************************************************/\n\n// A valid web domain token\nconst WORD = 'WORD'; // only contains a-z\nconst UWORD = 'UWORD'; // contains letters other than a-z, used for IDN\n\n// Special case of word\nconst LOCALHOST = 'LOCALHOST';\n\n// Valid top-level domain, special case of WORD (see tlds.js)\nconst TLD = 'TLD';\n\n// Valid IDN TLD, special case of UWORD (see tlds.js)\nconst UTLD = 'UTLD';\n\n// The scheme portion of a web URI protocol. Supported types include: `mailto`,\n// `file`, and user-defined custom protocols. Limited to schemes that contain\n// only letters\nconst SCHEME = 'SCHEME';\n\n// Similar to SCHEME, except makes distinction for schemes that must always be\n// followed by `://`, not just `:`. Supported types include `http`, `https`,\n// `ftp`, `ftps`\nconst SLASH_SCHEME = 'SLASH_SCHEME';\n\n// Any sequence of digits 0-9\nconst NUM = 'NUM';\n\n// Any number of consecutive whitespace characters that are not newline\nconst WS = 'WS';\n\n// New line (unix style)\nconst NL$1 = 'NL'; // \\n\n\n// Opening/closing bracket classes\n// TODO: Rename OPEN -> LEFT and CLOSE -> RIGHT in v5 to fit with Unicode names\n// Also rename angle brackes to LESSTHAN and GREATER THAN\nconst OPENBRACE = 'OPENBRACE'; // {\nconst CLOSEBRACE = 'CLOSEBRACE'; // }\nconst OPENBRACKET = 'OPENBRACKET'; // [\nconst CLOSEBRACKET = 'CLOSEBRACKET'; // ]\nconst OPENPAREN = 'OPENPAREN'; // (\nconst CLOSEPAREN = 'CLOSEPAREN'; // )\nconst OPENANGLEBRACKET = 'OPENANGLEBRACKET'; // <\nconst CLOSEANGLEBRACKET = 'CLOSEANGLEBRACKET'; // >\nconst FULLWIDTHLEFTPAREN = 'FULLWIDTHLEFTPAREN'; // \uFF08\nconst FULLWIDTHRIGHTPAREN = 'FULLWIDTHRIGHTPAREN'; // \uFF09\nconst LEFTCORNERBRACKET = 'LEFTCORNERBRACKET'; // \u300C\nconst RIGHTCORNERBRACKET = 'RIGHTCORNERBRACKET'; // \u300D\nconst LEFTWHITECORNERBRACKET = 'LEFTWHITECORNERBRACKET'; // \u300E\nconst RIGHTWHITECORNERBRACKET = 'RIGHTWHITECORNERBRACKET'; // \u300F\nconst FULLWIDTHLESSTHAN = 'FULLWIDTHLESSTHAN'; // \uFF1C\nconst FULLWIDTHGREATERTHAN = 'FULLWIDTHGREATERTHAN'; // \uFF1E\n\n// Various symbols\nconst AMPERSAND = 'AMPERSAND'; // &\nconst APOSTROPHE = 'APOSTROPHE'; // '\nconst ASTERISK = 'ASTERISK'; // *\nconst AT = 'AT'; // @\nconst BACKSLASH = 'BACKSLASH'; // \\\nconst BACKTICK = 'BACKTICK'; // `\nconst CARET = 'CARET'; // ^\nconst COLON = 'COLON'; // :\nconst COMMA = 'COMMA'; // ,\nconst DOLLAR = 'DOLLAR'; // $\nconst DOT = 'DOT'; // .\nconst EQUALS = 'EQUALS'; // =\nconst EXCLAMATION = 'EXCLAMATION'; // !\nconst HYPHEN = 'HYPHEN'; // -\nconst PERCENT = 'PERCENT'; // %\nconst PIPE = 'PIPE'; // |\nconst PLUS = 'PLUS'; // +\nconst POUND = 'POUND'; // #\nconst QUERY = 'QUERY'; // ?\nconst QUOTE = 'QUOTE'; // \"\n\nconst SEMI = 'SEMI'; // ;\nconst SLASH = 'SLASH'; // /\nconst TILDE = 'TILDE'; // ~\nconst UNDERSCORE = 'UNDERSCORE'; // _\n\n// Emoji symbol\nconst EMOJI$1 = 'EMOJI';\n\n// Default token - anything that is not one of the above\nconst SYM = 'SYM';\n\nvar tk = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tWORD: WORD,\n\tUWORD: UWORD,\n\tLOCALHOST: LOCALHOST,\n\tTLD: TLD,\n\tUTLD: UTLD,\n\tSCHEME: SCHEME,\n\tSLASH_SCHEME: SLASH_SCHEME,\n\tNUM: NUM,\n\tWS: WS,\n\tNL: NL$1,\n\tOPENBRACE: OPENBRACE,\n\tCLOSEBRACE: CLOSEBRACE,\n\tOPENBRACKET: OPENBRACKET,\n\tCLOSEBRACKET: CLOSEBRACKET,\n\tOPENPAREN: OPENPAREN,\n\tCLOSEPAREN: CLOSEPAREN,\n\tOPENANGLEBRACKET: OPENANGLEBRACKET,\n\tCLOSEANGLEBRACKET: CLOSEANGLEBRACKET,\n\tFULLWIDTHLEFTPAREN: FULLWIDTHLEFTPAREN,\n\tFULLWIDTHRIGHTPAREN: FULLWIDTHRIGHTPAREN,\n\tLEFTCORNERBRACKET: LEFTCORNERBRACKET,\n\tRIGHTCORNERBRACKET: RIGHTCORNERBRACKET,\n\tLEFTWHITECORNERBRACKET: LEFTWHITECORNERBRACKET,\n\tRIGHTWHITECORNERBRACKET: RIGHTWHITECORNERBRACKET,\n\tFULLWIDTHLESSTHAN: FULLWIDTHLESSTHAN,\n\tFULLWIDTHGREATERTHAN: FULLWIDTHGREATERTHAN,\n\tAMPERSAND: AMPERSAND,\n\tAPOSTROPHE: APOSTROPHE,\n\tASTERISK: ASTERISK,\n\tAT: AT,\n\tBACKSLASH: BACKSLASH,\n\tBACKTICK: BACKTICK,\n\tCARET: CARET,\n\tCOLON: COLON,\n\tCOMMA: COMMA,\n\tDOLLAR: DOLLAR,\n\tDOT: DOT,\n\tEQUALS: EQUALS,\n\tEXCLAMATION: EXCLAMATION,\n\tHYPHEN: HYPHEN,\n\tPERCENT: PERCENT,\n\tPIPE: PIPE,\n\tPLUS: PLUS,\n\tPOUND: POUND,\n\tQUERY: QUERY,\n\tQUOTE: QUOTE,\n\tSEMI: SEMI,\n\tSLASH: SLASH,\n\tTILDE: TILDE,\n\tUNDERSCORE: UNDERSCORE,\n\tEMOJI: EMOJI$1,\n\tSYM: SYM\n});\n\n// Note that these two Unicode ones expand into a really big one with Babel\nconst ASCII_LETTER = /[a-z]/;\nconst LETTER = /\\p{L}/u; // Any Unicode character with letter data type\nconst EMOJI = /\\p{Emoji}/u; // Any Unicode emoji character\nconst EMOJI_VARIATION$1 = /\\ufe0f/;\nconst DIGIT = /\\d/;\nconst SPACE = /\\s/;\n\nvar regexp = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tASCII_LETTER: ASCII_LETTER,\n\tLETTER: LETTER,\n\tEMOJI: EMOJI,\n\tEMOJI_VARIATION: EMOJI_VARIATION$1,\n\tDIGIT: DIGIT,\n\tSPACE: SPACE\n});\n\n/**\n\tThe scanner provides an interface that takes a string of text as input, and\n\toutputs an array of tokens instances that can be used for easy URL parsing.\n*/\nconst NL = '\\n'; // New line character\nconst EMOJI_VARIATION = '\\ufe0f'; // Variation selector, follows heart and others\nconst EMOJI_JOINER = '\\u200d'; // zero-width joiner\n\nlet tlds = null,\n utlds = null; // don't change so only have to be computed once\n\n/**\n * Scanner output token:\n * - `t` is the token name (e.g., 'NUM', 'EMOJI', 'TLD')\n * - `v` is the value of the token (e.g., '123', '\u2764\uFE0F', 'com')\n * - `s` is the start index of the token in the original string\n * - `e` is the end index of the token in the original string\n * @typedef {{t: string, v: string, s: number, e: number}} Token\n */\n\n/**\n * @template T\n * @typedef {{ [collection: string]: T[] }} Collections\n */\n\n/**\n * Initialize the scanner character-based state machine for the given start\n * state\n * @param {[string, boolean][]} customSchemes List of custom schemes, where each\n * item is a length-2 tuple with the first element set to the string scheme, and\n * the second element set to `true` if the `://` after the scheme is optional\n */\nfunction init$2(customSchemes) {\n if (customSchemes === void 0) {\n customSchemes = [];\n }\n // Frequently used states (name argument removed during minification)\n /** @type Collections */\n const groups = {}; // of tokens\n State.groups = groups;\n /** @type State */\n const Start = new State();\n if (tlds == null) {\n tlds = decodeTlds(encodedTlds);\n }\n if (utlds == null) {\n utlds = decodeTlds(encodedUtlds);\n }\n\n // States for special URL symbols that accept immediately after start\n tt(Start, \"'\", APOSTROPHE);\n tt(Start, '{', OPENBRACE);\n tt(Start, '}', CLOSEBRACE);\n tt(Start, '[', OPENBRACKET);\n tt(Start, ']', CLOSEBRACKET);\n tt(Start, '(', OPENPAREN);\n tt(Start, ')', CLOSEPAREN);\n tt(Start, '<', OPENANGLEBRACKET);\n tt(Start, '>', CLOSEANGLEBRACKET);\n tt(Start, '\uFF08', FULLWIDTHLEFTPAREN);\n tt(Start, '\uFF09', FULLWIDTHRIGHTPAREN);\n tt(Start, '\u300C', LEFTCORNERBRACKET);\n tt(Start, '\u300D', RIGHTCORNERBRACKET);\n tt(Start, '\u300E', LEFTWHITECORNERBRACKET);\n tt(Start, '\u300F', RIGHTWHITECORNERBRACKET);\n tt(Start, '\uFF1C', FULLWIDTHLESSTHAN);\n tt(Start, '\uFF1E', FULLWIDTHGREATERTHAN);\n tt(Start, '&', AMPERSAND);\n tt(Start, '*', ASTERISK);\n tt(Start, '@', AT);\n tt(Start, '`', BACKTICK);\n tt(Start, '^', CARET);\n tt(Start, ':', COLON);\n tt(Start, ',', COMMA);\n tt(Start, '$', DOLLAR);\n tt(Start, '.', DOT);\n tt(Start, '=', EQUALS);\n tt(Start, '!', EXCLAMATION);\n tt(Start, '-', HYPHEN);\n tt(Start, '%', PERCENT);\n tt(Start, '|', PIPE);\n tt(Start, '+', PLUS);\n tt(Start, '#', POUND);\n tt(Start, '?', QUERY);\n tt(Start, '\"', QUOTE);\n tt(Start, '/', SLASH);\n tt(Start, ';', SEMI);\n tt(Start, '~', TILDE);\n tt(Start, '_', UNDERSCORE);\n tt(Start, '\\\\', BACKSLASH);\n const Num = tr(Start, DIGIT, NUM, {\n [numeric]: true\n });\n tr(Num, DIGIT, Num);\n\n // State which emits a word token\n const Word = tr(Start, ASCII_LETTER, WORD, {\n [ascii]: true\n });\n tr(Word, ASCII_LETTER, Word);\n\n // Same as previous, but specific to non-fsm.ascii alphabet words\n const UWord = tr(Start, LETTER, UWORD, {\n [alpha]: true\n });\n tr(UWord, ASCII_LETTER); // Non-accepting\n tr(UWord, LETTER, UWord);\n\n // Whitespace jumps\n // Tokens of only non-newline whitespace are arbitrarily long\n // If any whitespace except newline, more whitespace!\n const Ws = tr(Start, SPACE, WS, {\n [whitespace]: true\n });\n tt(Start, NL, NL$1, {\n [whitespace]: true\n });\n tt(Ws, NL); // non-accepting state to avoid mixing whitespaces\n tr(Ws, SPACE, Ws);\n\n // Emoji tokens. They are not grouped by the scanner except in cases where a\n // zero-width joiner is present\n const Emoji = tr(Start, EMOJI, EMOJI$1, {\n [emoji]: true\n });\n tr(Emoji, EMOJI, Emoji);\n tt(Emoji, EMOJI_VARIATION, Emoji);\n // tt(Start, EMOJI_VARIATION, Emoji); // This one is sketchy\n\n const EmojiJoiner = tt(Emoji, EMOJI_JOINER);\n tr(EmojiJoiner, EMOJI, Emoji);\n // tt(EmojiJoiner, EMOJI_VARIATION, Emoji); // also sketchy\n\n // Generates states for top-level domains\n // Note that this is most accurate when tlds are in alphabetical order\n const wordjr = [[ASCII_LETTER, Word]];\n const uwordjr = [[ASCII_LETTER, null], [LETTER, UWord]];\n for (let i = 0; i < tlds.length; i++) {\n fastts(Start, tlds[i], TLD, WORD, wordjr);\n }\n for (let i = 0; i < utlds.length; i++) {\n fastts(Start, utlds[i], UTLD, UWORD, uwordjr);\n }\n addToGroups(TLD, {\n tld: true,\n ascii: true\n }, groups);\n addToGroups(UTLD, {\n utld: true,\n alpha: true\n }, groups);\n\n // Collect the states generated by different protocols. NOTE: If any new TLDs\n // get added that are also protocols, set the token to be the same as the\n // protocol to ensure parsing works as expected.\n fastts(Start, 'file', SCHEME, WORD, wordjr);\n fastts(Start, 'mailto', SCHEME, WORD, wordjr);\n fastts(Start, 'http', SLASH_SCHEME, WORD, wordjr);\n fastts(Start, 'https', SLASH_SCHEME, WORD, wordjr);\n fastts(Start, 'ftp', SLASH_SCHEME, WORD, wordjr);\n fastts(Start, 'ftps', SLASH_SCHEME, WORD, wordjr);\n addToGroups(SCHEME, {\n scheme: true,\n ascii: true\n }, groups);\n addToGroups(SLASH_SCHEME, {\n slashscheme: true,\n ascii: true\n }, groups);\n\n // Register custom schemes. Assumes each scheme is asciinumeric with hyphens\n customSchemes = customSchemes.sort((a, b) => a[0] > b[0] ? 1 : -1);\n for (let i = 0; i < customSchemes.length; i++) {\n const sch = customSchemes[i][0];\n const optionalSlashSlash = customSchemes[i][1];\n const flags = optionalSlashSlash ? {\n [scheme]: true\n } : {\n [slashscheme]: true\n };\n if (sch.indexOf('-') >= 0) {\n flags[domain] = true;\n } else if (!ASCII_LETTER.test(sch)) {\n flags[numeric] = true; // numbers only\n } else if (DIGIT.test(sch)) {\n flags[asciinumeric] = true;\n } else {\n flags[ascii] = true;\n }\n ts(Start, sch, sch, flags);\n }\n\n // Localhost token\n ts(Start, 'localhost', LOCALHOST, {\n ascii: true\n });\n\n // Set default transition for start state (some symbol)\n Start.jd = new State(SYM);\n return {\n start: Start,\n tokens: assign({\n groups\n }, tk)\n };\n}\n\n/**\n\tGiven a string, returns an array of TOKEN instances representing the\n\tcomposition of that string.\n\n\t@method run\n\t@param {State} start scanner starting state\n\t@param {string} str input string to scan\n\t@return {Token[]} list of tokens, each with a type and value\n*/\nfunction run$1(start, str) {\n // State machine is not case sensitive, so input is tokenized in lowercased\n // form (still returns regular case). Uses selective `toLowerCase` because\n // lowercasing the entire string causes the length and character position to\n // vary in some non-English strings with V8-based runtimes.\n const iterable = stringToArray(str.replace(/[A-Z]/g, c => c.toLowerCase()));\n const charCount = iterable.length; // <= len if there are emojis, etc\n const tokens = []; // return value\n\n // cursor through the string itself, accounting for characters that have\n // width with length 2 such as emojis\n let cursor = 0;\n\n // Cursor through the array-representation of the string\n let charCursor = 0;\n\n // Tokenize the string\n while (charCursor < charCount) {\n let state = start;\n let nextState = null;\n let tokenLength = 0;\n let latestAccepting = null;\n let sinceAccepts = -1;\n let charsSinceAccepts = -1;\n while (charCursor < charCount && (nextState = state.go(iterable[charCursor]))) {\n state = nextState;\n\n // Keep track of the latest accepting state\n if (state.accepts()) {\n sinceAccepts = 0;\n charsSinceAccepts = 0;\n latestAccepting = state;\n } else if (sinceAccepts >= 0) {\n sinceAccepts += iterable[charCursor].length;\n charsSinceAccepts++;\n }\n tokenLength += iterable[charCursor].length;\n cursor += iterable[charCursor].length;\n charCursor++;\n }\n\n // Roll back to the latest accepting state\n cursor -= sinceAccepts;\n charCursor -= charsSinceAccepts;\n tokenLength -= sinceAccepts;\n\n // No more jumps, just make a new token from the last accepting one\n tokens.push({\n t: latestAccepting.t,\n // token type/name\n v: str.slice(cursor - tokenLength, cursor),\n // string value\n s: cursor - tokenLength,\n // start index\n e: cursor // end index (excluding)\n });\n }\n\n return tokens;\n}\n\n/**\n * Convert a String to an Array of characters, taking into account that some\n * characters like emojis take up two string indexes.\n *\n * Adapted from core-js (MIT license)\n * https://github.com/zloirock/core-js/blob/2d69cf5f99ab3ea3463c395df81e5a15b68f49d9/packages/core-js/internals/string-multibyte.js\n *\n * @function stringToArray\n * @param {string} str\n * @returns {string[]}\n */\nfunction stringToArray(str) {\n const result = [];\n const len = str.length;\n let index = 0;\n while (index < len) {\n let first = str.charCodeAt(index);\n let second;\n let char = first < 0xd800 || first > 0xdbff || index + 1 === len || (second = str.charCodeAt(index + 1)) < 0xdc00 || second > 0xdfff ? str[index] // single character\n : str.slice(index, index + 2); // two-index characters\n result.push(char);\n index += char.length;\n }\n return result;\n}\n\n/**\n * Fast version of ts function for when transition defaults are well known\n * @param {State} state\n * @param {string} input\n * @param {string} t\n * @param {string} defaultt\n * @param {[RegExp, State][]} jr\n * @returns {State}\n */\nfunction fastts(state, input, t, defaultt, jr) {\n let next;\n const len = input.length;\n for (let i = 0; i < len - 1; i++) {\n const char = input[i];\n if (state.j[char]) {\n next = state.j[char];\n } else {\n next = new State(defaultt);\n next.jr = jr.slice();\n state.j[char] = next;\n }\n state = next;\n }\n next = new State(t);\n next.jr = jr.slice();\n state.j[input[len - 1]] = next;\n return next;\n}\n\n/**\n * Converts a string of Top-Level Domain names encoded in update-tlds.js back\n * into a list of strings.\n * @param {str} encoded encoded TLDs string\n * @returns {str[]} original TLDs list\n */\nfunction decodeTlds(encoded) {\n const words = [];\n const stack = [];\n let i = 0;\n let digits = '0123456789';\n while (i < encoded.length) {\n let popDigitCount = 0;\n while (digits.indexOf(encoded[i + popDigitCount]) >= 0) {\n popDigitCount++; // encountered some digits, have to pop to go one level up trie\n }\n\n if (popDigitCount > 0) {\n words.push(stack.join('')); // whatever preceded the pop digits must be a word\n for (let popCount = parseInt(encoded.substring(i, i + popDigitCount), 10); popCount > 0; popCount--) {\n stack.pop();\n }\n i += popDigitCount;\n } else {\n stack.push(encoded[i]); // drop down a level into the trie\n i++;\n }\n }\n return words;\n}\n\n/**\n * An object where each key is a valid DOM Event Name such as `click` or `focus`\n * and each value is an event handler function.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Element#events\n * @typedef {?{ [event: string]: Function }} EventListeners\n */\n\n/**\n * All formatted properties required to render a link, including `tagName`,\n * `attributes`, `content` and `eventListeners`.\n * @typedef {{ tagName: any, attributes: {[attr: string]: any}, content: string,\n * eventListeners: EventListeners }} IntermediateRepresentation\n */\n\n/**\n * Specify either an object described by the template type `O` or a function.\n *\n * The function takes a string value (usually the link's href attribute), the\n * link type (`'url'`, `'hashtag`', etc.) and an internal token representation\n * of the link. It should return an object of the template type `O`\n * @template O\n * @typedef {O | ((value: string, type: string, token: MultiToken) => O)} OptObj\n */\n\n/**\n * Specify either a function described by template type `F` or an object.\n *\n * Each key in the object should be a link type (`'url'`, `'hashtag`', etc.). Each\n * value should be a function with template type `F` that is called when the\n * corresponding link type is encountered.\n * @template F\n * @typedef {F | { [type: string]: F}} OptFn\n */\n\n/**\n * Specify either a value with template type `V`, a function that returns `V` or\n * an object where each value resolves to `V`.\n *\n * The function takes a string value (usually the link's href attribute), the\n * link type (`'url'`, `'hashtag`', etc.) and an internal token representation\n * of the link. It should return an object of the template type `V`\n *\n * For the object, each key should be a link type (`'url'`, `'hashtag`', etc.).\n * Each value should either have type `V` or a function that returns V. This\n * function similarly takes a string value and a token.\n *\n * Example valid types for `Opt`:\n *\n * ```js\n * 'hello'\n * (value, type, token) => 'world'\n * { url: 'hello', email: (value, token) => 'world'}\n * ```\n * @template V\n * @typedef {V | ((value: string, type: string, token: MultiToken) => V) | { [type: string]: V | ((value: string, token: MultiToken) => V) }} Opt\n */\n\n/**\n * See available options: https://linkify.js.org/docs/options.html\n * @typedef {{\n * \tdefaultProtocol?: string,\n * events?: OptObj,\n * \tformat?: Opt,\n * \tformatHref?: Opt,\n * \tnl2br?: boolean,\n * \ttagName?: Opt,\n * \ttarget?: Opt,\n * \trel?: Opt,\n * \tvalidate?: Opt,\n * \ttruncate?: Opt,\n * \tclassName?: Opt,\n * \tattributes?: OptObj<({ [attr: string]: any })>,\n * ignoreTags?: string[],\n * \trender?: OptFn<((ir: IntermediateRepresentation) => any)>\n * }} Opts\n */\n\n/**\n * @type Required\n */\nconst defaults = {\n defaultProtocol: 'http',\n events: null,\n format: noop,\n formatHref: noop,\n nl2br: false,\n tagName: 'a',\n target: null,\n rel: null,\n validate: true,\n truncate: Infinity,\n className: null,\n attributes: null,\n ignoreTags: [],\n render: null\n};\n\n/**\n * Utility class for linkify interfaces to apply specified\n * {@link Opts formatting and rendering options}.\n *\n * @param {Opts | Options} [opts] Option value overrides.\n * @param {(ir: IntermediateRepresentation) => any} [defaultRender] (For\n * internal use) default render function that determines how to generate an\n * HTML element based on a link token's derived tagName, attributes and HTML.\n * Similar to render option\n */\nfunction Options(opts, defaultRender) {\n if (defaultRender === void 0) {\n defaultRender = null;\n }\n let o = assign({}, defaults);\n if (opts) {\n o = assign(o, opts instanceof Options ? opts.o : opts);\n }\n\n // Ensure all ignored tags are uppercase\n const ignoredTags = o.ignoreTags;\n const uppercaseIgnoredTags = [];\n for (let i = 0; i < ignoredTags.length; i++) {\n uppercaseIgnoredTags.push(ignoredTags[i].toUpperCase());\n }\n /** @protected */\n this.o = o;\n if (defaultRender) {\n this.defaultRender = defaultRender;\n }\n this.ignoreTags = uppercaseIgnoredTags;\n}\nOptions.prototype = {\n o: defaults,\n /**\n * @type string[]\n */\n ignoreTags: [],\n /**\n * @param {IntermediateRepresentation} ir\n * @returns {any}\n */\n defaultRender(ir) {\n return ir;\n },\n /**\n * Returns true or false based on whether a token should be displayed as a\n * link based on the user options.\n * @param {MultiToken} token\n * @returns {boolean}\n */\n check(token) {\n return this.get('validate', token.toString(), token);\n },\n // Private methods\n\n /**\n * Resolve an option's value based on the value of the option and the given\n * params. If operator and token are specified and the target option is\n * callable, automatically calls the function with the given argument.\n * @template {keyof Opts} K\n * @param {K} key Name of option to use\n * @param {string} [operator] will be passed to the target option if it's a\n * function. If not specified, RAW function value gets returned\n * @param {MultiToken} [token] The token from linkify.tokenize\n * @returns {Opts[K] | any}\n */\n get(key, operator, token) {\n const isCallable = operator != null;\n let option = this.o[key];\n if (!option) {\n return option;\n }\n if (typeof option === 'object') {\n option = token.t in option ? option[token.t] : defaults[key];\n if (typeof option === 'function' && isCallable) {\n option = option(operator, token);\n }\n } else if (typeof option === 'function' && isCallable) {\n option = option(operator, token.t, token);\n }\n return option;\n },\n /**\n * @template {keyof Opts} L\n * @param {L} key Name of options object to use\n * @param {string} [operator]\n * @param {MultiToken} [token]\n * @returns {Opts[L] | any}\n */\n getObj(key, operator, token) {\n let obj = this.o[key];\n if (typeof obj === 'function' && operator != null) {\n obj = obj(operator, token.t, token);\n }\n return obj;\n },\n /**\n * Convert the given token to a rendered element that may be added to the\n * calling-interface's DOM\n * @param {MultiToken} token Token to render to an HTML element\n * @returns {any} Render result; e.g., HTML string, DOM element, React\n * Component, etc.\n */\n render(token) {\n const ir = token.render(this); // intermediate representation\n const renderFn = this.get('render', null, token) || this.defaultRender;\n return renderFn(ir, token.t, token);\n }\n};\nfunction noop(val) {\n return val;\n}\n\nvar options = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tdefaults: defaults,\n\tOptions: Options,\n\tassign: assign\n});\n\n/******************************************************************************\n\tMulti-Tokens\n\tTokens composed of arrays of TextTokens\n******************************************************************************/\n\n/**\n * @param {string} value\n * @param {Token[]} tokens\n */\nfunction MultiToken(value, tokens) {\n this.t = 'token';\n this.v = value;\n this.tk = tokens;\n}\n\n/**\n * Abstract class used for manufacturing tokens of text tokens. That is rather\n * than the value for a token being a small string of text, it's value an array\n * of text tokens.\n *\n * Used for grouping together URLs, emails, hashtags, and other potential\n * creations.\n * @class MultiToken\n * @property {string} t\n * @property {string} v\n * @property {Token[]} tk\n * @abstract\n */\nMultiToken.prototype = {\n isLink: false,\n /**\n * Return the string this token represents.\n * @return {string}\n */\n toString() {\n return this.v;\n },\n /**\n * What should the value for this token be in the `href` HTML attribute?\n * Returns the `.toString` value by default.\n * @param {string} [scheme]\n * @return {string}\n */\n toHref(scheme) {\n return this.toString();\n },\n /**\n * @param {Options} options Formatting options\n * @returns {string}\n */\n toFormattedString(options) {\n const val = this.toString();\n const truncate = options.get('truncate', val, this);\n const formatted = options.get('format', val, this);\n return truncate && formatted.length > truncate ? formatted.substring(0, truncate) + '\u2026' : formatted;\n },\n /**\n *\n * @param {Options} options\n * @returns {string}\n */\n toFormattedHref(options) {\n return options.get('formatHref', this.toHref(options.get('defaultProtocol')), this);\n },\n /**\n * The start index of this token in the original input string\n * @returns {number}\n */\n startIndex() {\n return this.tk[0].s;\n },\n /**\n * The end index of this token in the original input string (up to this\n * index but not including it)\n * @returns {number}\n */\n endIndex() {\n return this.tk[this.tk.length - 1].e;\n },\n /**\n \tReturns an object of relevant values for this token, which includes keys\n \t* type - Kind of token ('url', 'email', etc.)\n \t* value - Original text\n \t* href - The value that should be added to the anchor tag's href\n \t\tattribute\n \t\t@method toObject\n \t@param {string} [protocol] `'http'` by default\n */\n toObject(protocol) {\n if (protocol === void 0) {\n protocol = defaults.defaultProtocol;\n }\n return {\n type: this.t,\n value: this.toString(),\n isLink: this.isLink,\n href: this.toHref(protocol),\n start: this.startIndex(),\n end: this.endIndex()\n };\n },\n /**\n *\n * @param {Options} options Formatting option\n */\n toFormattedObject(options) {\n return {\n type: this.t,\n value: this.toFormattedString(options),\n isLink: this.isLink,\n href: this.toFormattedHref(options),\n start: this.startIndex(),\n end: this.endIndex()\n };\n },\n /**\n * Whether this token should be rendered as a link according to the given options\n * @param {Options} options\n * @returns {boolean}\n */\n validate(options) {\n return options.get('validate', this.toString(), this);\n },\n /**\n * Return an object that represents how this link should be rendered.\n * @param {Options} options Formattinng options\n */\n render(options) {\n const token = this;\n const href = this.toHref(options.get('defaultProtocol'));\n const formattedHref = options.get('formatHref', href, this);\n const tagName = options.get('tagName', href, token);\n const content = this.toFormattedString(options);\n const attributes = {};\n const className = options.get('className', href, token);\n const target = options.get('target', href, token);\n const rel = options.get('rel', href, token);\n const attrs = options.getObj('attributes', href, token);\n const eventListeners = options.getObj('events', href, token);\n attributes.href = formattedHref;\n if (className) {\n attributes.class = className;\n }\n if (target) {\n attributes.target = target;\n }\n if (rel) {\n attributes.rel = rel;\n }\n if (attrs) {\n assign(attributes, attrs);\n }\n return {\n tagName,\n attributes,\n content,\n eventListeners\n };\n }\n};\n\n/**\n * Create a new token that can be emitted by the parser state machine\n * @param {string} type readable type of the token\n * @param {object} props properties to assign or override, including isLink = true or false\n * @returns {new (value: string, tokens: Token[]) => MultiToken} new token class\n */\nfunction createTokenClass(type, props) {\n class Token extends MultiToken {\n constructor(value, tokens) {\n super(value, tokens);\n this.t = type;\n }\n }\n for (const p in props) {\n Token.prototype[p] = props[p];\n }\n Token.t = type;\n return Token;\n}\n\n/**\n\tRepresents a list of tokens making up a valid email address\n*/\nconst Email = createTokenClass('email', {\n isLink: true,\n toHref() {\n return 'mailto:' + this.toString();\n }\n});\n\n/**\n\tRepresents some plain text\n*/\nconst Text = createTokenClass('text');\n\n/**\n\tMulti-linebreak token - represents a line break\n\t@class Nl\n*/\nconst Nl = createTokenClass('nl');\n\n/**\n\tRepresents a list of text tokens making up a valid URL\n\t@class Url\n*/\nconst Url = createTokenClass('url', {\n isLink: true,\n /**\n \tLowercases relevant parts of the domain and adds the protocol if\n \trequired. Note that this will not escape unsafe HTML characters in the\n \tURL.\n \t\t@param {string} [scheme] default scheme (e.g., 'https')\n \t@return {string} the full href\n */\n toHref(scheme) {\n if (scheme === void 0) {\n scheme = defaults.defaultProtocol;\n }\n // Check if already has a prefix scheme\n return this.hasProtocol() ? this.v : `${scheme}://${this.v}`;\n },\n /**\n * Check whether this URL token has a protocol\n * @return {boolean}\n */\n hasProtocol() {\n const tokens = this.tk;\n return tokens.length >= 2 && tokens[0].t !== LOCALHOST && tokens[1].t === COLON;\n }\n});\n\nvar multi = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tMultiToken: MultiToken,\n\tBase: MultiToken,\n\tcreateTokenClass: createTokenClass,\n\tEmail: Email,\n\tText: Text,\n\tNl: Nl,\n\tUrl: Url\n});\n\n/**\n\tNot exactly parser, more like the second-stage scanner (although we can\n\ttheoretically hotswap the code here with a real parser in the future... but\n\tfor a little URL-finding utility abstract syntax trees may be a little\n\toverkill).\n\n\tURL format: http://en.wikipedia.org/wiki/URI_scheme\n\tEmail format: http://en.wikipedia.org/wiki/EmailAddress (links to RFC in\n\treference)\n\n\t@module linkify\n\t@submodule parser\n\t@main run\n*/\nconst makeState = arg => new State(arg);\n\n/**\n * Generate the parser multi token-based state machine\n * @param {{ groups: Collections }} tokens\n */\nfunction init$1(_ref) {\n let {\n groups\n } = _ref;\n // Types of characters the URL can definitely end in\n const qsAccepting = groups.domain.concat([AMPERSAND, ASTERISK, AT, BACKSLASH, BACKTICK, CARET, DOLLAR, EQUALS, HYPHEN, NUM, PERCENT, PIPE, PLUS, POUND, SLASH, SYM, TILDE, UNDERSCORE]);\n\n // Types of tokens that can follow a URL and be part of the query string\n // but cannot be the very last characters\n // Characters that cannot appear in the URL at all should be excluded\n const qsNonAccepting = [APOSTROPHE, COLON, COMMA, DOT, EXCLAMATION, QUERY, QUOTE, SEMI, OPENANGLEBRACKET, CLOSEANGLEBRACKET, OPENBRACE, CLOSEBRACE, CLOSEBRACKET, OPENBRACKET, OPENPAREN, CLOSEPAREN, FULLWIDTHLEFTPAREN, FULLWIDTHRIGHTPAREN, LEFTCORNERBRACKET, RIGHTCORNERBRACKET, LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET, FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN];\n\n // For addresses without the mailto prefix\n // Tokens allowed in the localpart of the email\n const localpartAccepting = [AMPERSAND, APOSTROPHE, ASTERISK, BACKSLASH, BACKTICK, CARET, DOLLAR, EQUALS, HYPHEN, OPENBRACE, CLOSEBRACE, PERCENT, PIPE, PLUS, POUND, QUERY, SLASH, SYM, TILDE, UNDERSCORE];\n\n // The universal starting state.\n /**\n * @type State\n */\n const Start = makeState();\n const Localpart = tt(Start, TILDE); // Local part of the email address\n ta(Localpart, localpartAccepting, Localpart);\n ta(Localpart, groups.domain, Localpart);\n const Domain = makeState(),\n Scheme = makeState(),\n SlashScheme = makeState();\n ta(Start, groups.domain, Domain); // parsed string ends with a potential domain name (A)\n ta(Start, groups.scheme, Scheme); // e.g., 'mailto'\n ta(Start, groups.slashscheme, SlashScheme); // e.g., 'http'\n\n ta(Domain, localpartAccepting, Localpart);\n ta(Domain, groups.domain, Domain);\n const LocalpartAt = tt(Domain, AT); // Local part of the email address plus @\n\n tt(Localpart, AT, LocalpartAt); // close to an email address now\n\n // Local part of an email address can be e.g. 'http' or 'mailto'\n tt(Scheme, AT, LocalpartAt);\n tt(SlashScheme, AT, LocalpartAt);\n const LocalpartDot = tt(Localpart, DOT); // Local part of the email address plus '.' (localpart cannot end in .)\n ta(LocalpartDot, localpartAccepting, Localpart);\n ta(LocalpartDot, groups.domain, Localpart);\n const EmailDomain = makeState();\n ta(LocalpartAt, groups.domain, EmailDomain); // parsed string starts with local email info + @ with a potential domain name\n ta(EmailDomain, groups.domain, EmailDomain);\n const EmailDomainDot = tt(EmailDomain, DOT); // domain followed by DOT\n ta(EmailDomainDot, groups.domain, EmailDomain);\n const Email$1 = makeState(Email); // Possible email address (could have more tlds)\n ta(EmailDomainDot, groups.tld, Email$1);\n ta(EmailDomainDot, groups.utld, Email$1);\n tt(LocalpartAt, LOCALHOST, Email$1);\n\n // Hyphen can jump back to a domain name\n const EmailDomainHyphen = tt(EmailDomain, HYPHEN); // parsed string starts with local email info + @ with a potential domain name\n ta(EmailDomainHyphen, groups.domain, EmailDomain);\n ta(Email$1, groups.domain, EmailDomain);\n tt(Email$1, DOT, EmailDomainDot);\n tt(Email$1, HYPHEN, EmailDomainHyphen);\n\n // Final possible email states\n const EmailColon = tt(Email$1, COLON); // URL followed by colon (potential port number here)\n /*const EmailColonPort = */\n ta(EmailColon, groups.numeric, Email); // URL followed by colon and port number\n\n // Account for dots and hyphens. Hyphens are usually parts of domain names\n // (but not TLDs)\n const DomainHyphen = tt(Domain, HYPHEN); // domain followed by hyphen\n const DomainDot = tt(Domain, DOT); // domain followed by DOT\n ta(DomainHyphen, groups.domain, Domain);\n ta(DomainDot, localpartAccepting, Localpart);\n ta(DomainDot, groups.domain, Domain);\n const DomainDotTld = makeState(Url); // Simplest possible URL with no query string\n ta(DomainDot, groups.tld, DomainDotTld);\n ta(DomainDot, groups.utld, DomainDotTld);\n ta(DomainDotTld, groups.domain, Domain);\n ta(DomainDotTld, localpartAccepting, Localpart);\n tt(DomainDotTld, DOT, DomainDot);\n tt(DomainDotTld, HYPHEN, DomainHyphen);\n tt(DomainDotTld, AT, LocalpartAt);\n const DomainDotTldColon = tt(DomainDotTld, COLON); // URL followed by colon (potential port number here)\n const DomainDotTldColonPort = makeState(Url); // TLD followed by a port number\n ta(DomainDotTldColon, groups.numeric, DomainDotTldColonPort);\n\n // Long URL with optional port and maybe query string\n const Url$1 = makeState(Url);\n\n // URL with extra symbols at the end, followed by an opening bracket\n const UrlNonaccept = makeState(); // URL followed by some symbols (will not be part of the final URL)\n\n // Query strings\n ta(Url$1, qsAccepting, Url$1);\n ta(Url$1, qsNonAccepting, UrlNonaccept);\n ta(UrlNonaccept, qsAccepting, Url$1);\n ta(UrlNonaccept, qsNonAccepting, UrlNonaccept);\n\n // Become real URLs after `SLASH` or `COLON NUM SLASH`\n // Here works with or without scheme:// prefix\n tt(DomainDotTld, SLASH, Url$1);\n tt(DomainDotTldColonPort, SLASH, Url$1);\n\n // Note that domains that begin with schemes are treated slighly differently\n const SchemeColon = tt(Scheme, COLON); // e.g., 'mailto:'\n const SlashSchemeColon = tt(SlashScheme, COLON); // e.g., 'http:'\n const SlashSchemeColonSlash = tt(SlashSchemeColon, SLASH); // e.g., 'http:/'\n\n const UriPrefix = tt(SlashSchemeColonSlash, SLASH); // e.g., 'http://'\n\n // Scheme states can transition to domain states\n ta(Scheme, groups.domain, Domain);\n tt(Scheme, DOT, DomainDot);\n tt(Scheme, HYPHEN, DomainHyphen);\n ta(SlashScheme, groups.domain, Domain);\n tt(SlashScheme, DOT, DomainDot);\n tt(SlashScheme, HYPHEN, DomainHyphen);\n\n // Force URL with scheme prefix followed by anything sane\n ta(SchemeColon, groups.domain, Url$1);\n tt(SchemeColon, SLASH, Url$1);\n ta(UriPrefix, groups.domain, Url$1);\n ta(UriPrefix, qsAccepting, Url$1);\n tt(UriPrefix, SLASH, Url$1);\n const bracketPairs = [[OPENBRACE, CLOSEBRACE],\n // {}\n [OPENBRACKET, CLOSEBRACKET],\n // []\n [OPENPAREN, CLOSEPAREN],\n // ()\n [OPENANGLEBRACKET, CLOSEANGLEBRACKET],\n // <>\n [FULLWIDTHLEFTPAREN, FULLWIDTHRIGHTPAREN],\n // \uFF08\uFF09\n [LEFTCORNERBRACKET, RIGHTCORNERBRACKET],\n // \u300C\u300D\n [LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET],\n // \u300E\u300F\n [FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN] // \uFF1C\uFF1E\n ];\n\n for (let i = 0; i < bracketPairs.length; i++) {\n const [OPEN, CLOSE] = bracketPairs[i];\n const UrlOpen = tt(Url$1, OPEN); // URL followed by open bracket\n\n // Continue not accepting for open brackets\n tt(UrlNonaccept, OPEN, UrlOpen);\n\n // Closing bracket component. This character WILL be included in the URL\n tt(UrlOpen, CLOSE, Url$1);\n\n // URL that beings with an opening bracket, followed by a symbols.\n // Note that the final state can still be `UrlOpen` (if the URL has a\n // single opening bracket for some reason).\n const UrlOpenQ = makeState(Url);\n ta(UrlOpen, qsAccepting, UrlOpenQ);\n const UrlOpenSyms = makeState(); // UrlOpen followed by some symbols it cannot end it\n ta(UrlOpen, qsNonAccepting);\n\n // URL that begins with an opening bracket, followed by some symbols\n ta(UrlOpenQ, qsAccepting, UrlOpenQ);\n ta(UrlOpenQ, qsNonAccepting, UrlOpenSyms);\n ta(UrlOpenSyms, qsAccepting, UrlOpenQ);\n ta(UrlOpenSyms, qsNonAccepting, UrlOpenSyms);\n\n // Close brace/bracket to become regular URL\n tt(UrlOpenQ, CLOSE, Url$1);\n tt(UrlOpenSyms, CLOSE, Url$1);\n }\n tt(Start, LOCALHOST, DomainDotTld); // localhost is a valid URL state\n tt(Start, NL$1, Nl); // single new line\n\n return {\n start: Start,\n tokens: tk\n };\n}\n\n/**\n * Run the parser state machine on a list of scanned string-based tokens to\n * create a list of multi tokens, each of which represents a URL, email address,\n * plain text, etc.\n *\n * @param {State} start parser start state\n * @param {string} input the original input used to generate the given tokens\n * @param {Token[]} tokens list of scanned tokens\n * @returns {MultiToken[]}\n */\nfunction run(start, input, tokens) {\n let len = tokens.length;\n let cursor = 0;\n let multis = [];\n let textTokens = [];\n while (cursor < len) {\n let state = start;\n let secondState = null;\n let nextState = null;\n let multiLength = 0;\n let latestAccepting = null;\n let sinceAccepts = -1;\n while (cursor < len && !(secondState = state.go(tokens[cursor].t))) {\n // Starting tokens with nowhere to jump to.\n // Consider these to be just plain text\n textTokens.push(tokens[cursor++]);\n }\n while (cursor < len && (nextState = secondState || state.go(tokens[cursor].t))) {\n // Get the next state\n secondState = null;\n state = nextState;\n\n // Keep track of the latest accepting state\n if (state.accepts()) {\n sinceAccepts = 0;\n latestAccepting = state;\n } else if (sinceAccepts >= 0) {\n sinceAccepts++;\n }\n cursor++;\n multiLength++;\n }\n if (sinceAccepts < 0) {\n // No accepting state was found, part of a regular text token add\n // the first text token to the text tokens array and try again from\n // the next\n cursor -= multiLength;\n if (cursor < len) {\n textTokens.push(tokens[cursor]);\n cursor++;\n }\n } else {\n // Accepting state!\n // First close off the textTokens (if available)\n if (textTokens.length > 0) {\n multis.push(initMultiToken(Text, input, textTokens));\n textTokens = [];\n }\n\n // Roll back to the latest accepting state\n cursor -= sinceAccepts;\n multiLength -= sinceAccepts;\n\n // Create a new multitoken\n const Multi = latestAccepting.t;\n const subtokens = tokens.slice(cursor - multiLength, cursor);\n multis.push(initMultiToken(Multi, input, subtokens));\n }\n }\n\n // Finally close off the textTokens (if available)\n if (textTokens.length > 0) {\n multis.push(initMultiToken(Text, input, textTokens));\n }\n return multis;\n}\n\n/**\n * Utility function for instantiating a new multitoken with all the relevant\n * fields during parsing.\n * @param {new (value: string, tokens: Token[]) => MultiToken} Multi class to instantiate\n * @param {string} input original input string\n * @param {Token[]} tokens consecutive tokens scanned from input string\n * @returns {MultiToken}\n */\nfunction initMultiToken(Multi, input, tokens) {\n const startIdx = tokens[0].s;\n const endIdx = tokens[tokens.length - 1].e;\n const value = input.slice(startIdx, endIdx);\n return new Multi(value, tokens);\n}\n\nconst warn = typeof console !== 'undefined' && console && console.warn || (() => {});\nconst warnAdvice = 'until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.';\n\n// Side-effect initialization state\nconst INIT = {\n scanner: null,\n parser: null,\n tokenQueue: [],\n pluginQueue: [],\n customSchemes: [],\n initialized: false\n};\n\n/**\n * @typedef {{\n * \tstart: State,\n * \ttokens: { groups: Collections } & typeof tk\n * }} ScannerInit\n */\n\n/**\n * @typedef {{\n * \tstart: State,\n * \ttokens: typeof multi\n * }} ParserInit\n */\n\n/**\n * @typedef {(arg: { scanner: ScannerInit }) => void} TokenPlugin\n */\n\n/**\n * @typedef {(arg: { scanner: ScannerInit, parser: ParserInit }) => void} Plugin\n */\n\n/**\n * De-register all plugins and reset the internal state-machine. Used for\n * testing; not required in practice.\n * @private\n */\nfunction reset() {\n State.groups = {};\n INIT.scanner = null;\n INIT.parser = null;\n INIT.tokenQueue = [];\n INIT.pluginQueue = [];\n INIT.customSchemes = [];\n INIT.initialized = false;\n}\n\n/**\n * Register a token plugin to allow the scanner to recognize additional token\n * types before the parser state machine is constructed from the results.\n * @param {string} name of plugin to register\n * @param {TokenPlugin} plugin function that accepts the scanner state machine\n * and available scanner tokens and collections and extends the state machine to\n * recognize additional tokens or groups.\n */\nfunction registerTokenPlugin(name, plugin) {\n if (typeof plugin !== 'function') {\n throw new Error(`linkifyjs: Invalid token plugin ${plugin} (expects function)`);\n }\n for (let i = 0; i < INIT.tokenQueue.length; i++) {\n if (name === INIT.tokenQueue[i][0]) {\n warn(`linkifyjs: token plugin \"${name}\" already registered - will be overwritten`);\n INIT.tokenQueue[i] = [name, plugin];\n return;\n }\n }\n INIT.tokenQueue.push([name, plugin]);\n if (INIT.initialized) {\n warn(`linkifyjs: already initialized - will not register token plugin \"${name}\" ${warnAdvice}`);\n }\n}\n\n/**\n * Register a linkify plugin\n * @param {string} name of plugin to register\n * @param {Plugin} plugin function that accepts the parser state machine and\n * extends the parser to recognize additional link types\n */\nfunction registerPlugin(name, plugin) {\n if (typeof plugin !== 'function') {\n throw new Error(`linkifyjs: Invalid plugin ${plugin} (expects function)`);\n }\n for (let i = 0; i < INIT.pluginQueue.length; i++) {\n if (name === INIT.pluginQueue[i][0]) {\n warn(`linkifyjs: plugin \"${name}\" already registered - will be overwritten`);\n INIT.pluginQueue[i] = [name, plugin];\n return;\n }\n }\n INIT.pluginQueue.push([name, plugin]);\n if (INIT.initialized) {\n warn(`linkifyjs: already initialized - will not register plugin \"${name}\" ${warnAdvice}`);\n }\n}\n\n/**\n * Detect URLs with the following additional protocol. Anything with format\n * \"protocol://...\" will be considered a link. If `optionalSlashSlash` is set to\n * `true`, anything with format \"protocol:...\" will be considered a link.\n * @param {string} protocol\n * @param {boolean} [optionalSlashSlash]\n */\nfunction registerCustomProtocol(scheme, optionalSlashSlash) {\n if (optionalSlashSlash === void 0) {\n optionalSlashSlash = false;\n }\n if (INIT.initialized) {\n warn(`linkifyjs: already initialized - will not register custom scheme \"${scheme}\" ${warnAdvice}`);\n }\n if (!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(scheme)) {\n throw new Error(`linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat`);\n }\n INIT.customSchemes.push([scheme, optionalSlashSlash]);\n}\n\n/**\n * Initialize the linkify state machine. Called automatically the first time\n * linkify is called on a string, but may be called manually as well.\n */\nfunction init() {\n // Initialize scanner state machine and plugins\n INIT.scanner = init$2(INIT.customSchemes);\n for (let i = 0; i < INIT.tokenQueue.length; i++) {\n INIT.tokenQueue[i][1]({\n scanner: INIT.scanner\n });\n }\n\n // Initialize parser state machine and plugins\n INIT.parser = init$1(INIT.scanner.tokens);\n for (let i = 0; i < INIT.pluginQueue.length; i++) {\n INIT.pluginQueue[i][1]({\n scanner: INIT.scanner,\n parser: INIT.parser\n });\n }\n INIT.initialized = true;\n}\n\n/**\n * Parse a string into tokens that represent linkable and non-linkable sub-components\n * @param {string} str\n * @return {MultiToken[]} tokens\n */\nfunction tokenize(str) {\n if (!INIT.initialized) {\n init();\n }\n return run(INIT.parser.start, str, run$1(INIT.scanner.start, str));\n}\n\n/**\n * Find a list of linkable items in the given string.\n * @param {string} str string to find links in\n * @param {string | Opts} [type] either formatting options or specific type of\n * links to find, e.g., 'url' or 'email'\n * @param {Opts} [opts] formatting options for final output. Cannot be specified\n * if opts already provided in `type` argument\n */\nfunction find(str, type, opts) {\n if (type === void 0) {\n type = null;\n }\n if (opts === void 0) {\n opts = null;\n }\n if (type && typeof type === 'object') {\n if (opts) {\n throw Error(`linkifyjs: Invalid link type ${type}; must be a string`);\n }\n opts = type;\n type = null;\n }\n const options = new Options(opts);\n const tokens = tokenize(str);\n const filtered = [];\n for (let i = 0; i < tokens.length; i++) {\n const token = tokens[i];\n if (token.isLink && (!type || token.t === type) && options.check(token)) {\n filtered.push(token.toFormattedObject(options));\n }\n }\n return filtered;\n}\n\n/**\n * Is the given string valid linkable text of some sort. Note that this does not\n * trim the text for you.\n *\n * Optionally pass in a second `type` param, which is the type of link to test\n * for.\n *\n * For example,\n *\n * linkify.test(str, 'email');\n *\n * Returns `true` if str is a valid email.\n * @param {string} str string to test for links\n * @param {string} [type] optional specific link type to look for\n * @returns boolean true/false\n */\nfunction test(str, type) {\n if (type === void 0) {\n type = null;\n }\n const tokens = tokenize(str);\n return tokens.length === 1 && tokens[0].isLink && (!type || tokens[0].t === type);\n}\n\nexport { MultiToken, Options, State, createTokenClass, find, init, multi, options, regexp, registerCustomProtocol, registerPlugin, registerTokenPlugin, reset, stringToArray, test, tokenize };\n", "import {\n format as dateFormat,\n formatDistanceToNow as dateFormatDistanceToNow,\n intlFormatDistance as dateIntlFormatDistance,\n} from '@owl-nest/date-fns'\n// @ts-expect-error: types for date-fns-tz are badly configured and can't be\n// imported\nimport * as dateFnsTz from 'date-fns-tz'\nimport * as env from '@owl-nest/config'\nimport * as supports from '@owl-nest/feature-detection'\n\nimport { locales, defaultLocaleName } from './locales'\n\ntype Locales = typeof locales\ntype LocaleName = keyof Locales\ntype Locale = Locales[LocaleName]\n\nconst DEFAULT_MONTH_LIST = [\n 'janvier',\n 'f\u00E9vrier',\n 'mars',\n 'avril',\n 'mai',\n 'juin',\n 'juillet',\n 'ao\u00FBt',\n 'septembre',\n 'octobre',\n 'novembre',\n 'd\u00E9cembre',\n]\n\nexport function daysFromNow(daysToAdd = 7): number {\n const date = new Date()\n return date.setDate(date.getDate() + daysToAdd)\n}\n\n/**\n * Formats a given date using the provided Unicode token.\n *\n * @remarks\n * A locale may be provided through the options object.\n * If none, this uses the global setting stored window.UFE.locale, otherwise falls back to English.\n *\n * @param date\n * @param formatStr string representation of the Unicode token to use for formatting\n * @param options\n */\nexport function format(date: Date | number, formatStr: string, options?: { locale?: string }): string {\n return dateFormat(date, formatStr, {\n ...options,\n locale: locales[getLocaleName(options?.locale)],\n })\n}\n\n/**\n * Expresses the duration between a given date and now in words.\n *\n * @remarks\n * A locale may be provided through the options object.\n * If none, this uses the global setting stored window.UFE.locale, otherwise falls back to English.\n *\n * @param date\n * @param options\n */\nexport function formatDistanceToNow(\n date: Date | number,\n options?: {\n addSuffix?: boolean\n includeSeconds?: boolean\n locale?: Locale\n },\n): string {\n return dateFormatDistanceToNow(date, {\n ...options,\n locale: locales[getLocaleName(options?.locale)],\n })\n}\n\nexport function intlFormatDistance(\n date: Date | number,\n baseDate: Date | number = Date.now(),\n options?: {\n locale?: string\n numeric?: 'always' | 'auto'\n style?: 'long' | 'narrow' | 'short'\n },\n) {\n return dateIntlFormatDistance(date, baseDate, {\n locale: locales[getLocaleName(options?.locale)].code,\n numeric: 'always',\n style: 'short',\n ...options,\n })\n}\n\n/**\n * Returns a future date from now, adding the given amount of minutes.\n *\n * @param minutesToAdd defaults to 30\n */\nexport function minutesFromNow(minutesToAdd = 30): number {\n const now = Date.now() // current millisecond timestamp\n return now + minutesToAdd * 60 * 1000\n}\n\nexport {\n addBusinessDays,\n addDays,\n addHours,\n addMonths,\n compareAsc,\n differenceInCalendarDays,\n differenceInDays,\n differenceInHours,\n differenceInMinutes,\n differenceInSeconds,\n eachDayOfInterval,\n endOfMonth,\n endOfWeek,\n getHours,\n getMinutes,\n getSeconds,\n parse,\n parseISO,\n setHours,\n setMinutes,\n startOfWeek,\n subDays,\n subMonths,\n} from '@owl-nest/date-fns'\nexport * from './getCountDown'\n\nexport function getLocaleName(locale: Locale | string | undefined): LocaleName {\n const configLocale = typeof locale === 'string' ? locale : env.getUserConfig().lang\n if (configLocale !== undefined && isLocaleName(configLocale)) {\n return configLocale\n }\n console.error(\n `${configLocale} was not found in date-fns locales (${Object.keys(locales).join(\n ', ',\n )}). Defaulting to ${defaultLocaleName}`,\n )\n return defaultLocaleName\n}\n\nexport function isLocaleName(locale: string): locale is LocaleName {\n return locale in locales\n}\n\nexport function getMonthsList(locale?: Locale | string | undefined): string[] {\n let formatLocale = locale\n\n if (typeof locale === 'string') {\n formatLocale = locales[getLocaleName(locale)]\n }\n\n return Array.from({ length: 12 }, (_, index) => {\n if (supports.intlDateTimeFormat() && locale) {\n try {\n return new Intl.DateTimeFormat(locale, { month: 'long' }).format(new Date(2020, index, 1))\n } catch (error) {\n return formatLocale?.localize?.month(index, { width: 'abbreviated' }) ?? DEFAULT_MONTH_LIST[index]\n }\n }\n\n return formatLocale?.localize?.month(index, { width: 'abbreviated' }) ?? DEFAULT_MONTH_LIST[index]\n })\n}\n\nexport function createDateWithTimezone(date: Date | string, timezone: string): Date {\n return dateFnsTz.utcToZonedTime(date, timezone)\n}\n\nexport function getTimezoneCountry(timezone: string): string {\n if (timezone.includes('/')) {\n const timezoneSplited = timezone.split('/')\n return timezoneSplited[1]\n }\n\n return timezone\n}\n\nexport function formatTime(date: Date, format: string | undefined = 'HH:mm'): string {\n return dateFnsTz.format(date, format)\n}\n\nexport function zonedTimeToUtc(date: Date | string, timezone: string) {\n return dateFnsTz.zonedTimeToUtc(date, timezone)\n}\n\nexport function utcToZonedTime(date: Date | string, timezone: string) {\n return dateFnsTz.utcToZonedTime(date, timezone)\n}\n\nexport function getRelativeFormattedDateFromOffset(relativeDate: Date, offset = 60 * 60 * 24 * 1000) {\n return relativeDate.getTime() > Date.now() - offset ? intlFormatDistance(relativeDate) : format(relativeDate, 'P')\n}\n\n// Start of Selection\n/**\n * Get the date format pattern for the given locale.\n * @example\n * getDateFormatPattern('en-AU'); // dd/MM/yyyy\n * getDateFormatPattern('en-US'); // M/d/yyyy\n */\nexport function getDateFormatPattern(locale: Intl.LocalesArgument) {\n if (supports.intlDateTimeFormat() && supports.dateTimeFormatToParts()) {\n return new Intl.DateTimeFormat(locale).formatToParts(new Date('2021-01-01')).map(getPatternForPart).join('')\n }\n\n return env.USER_COUNTRY === 'FR' ? 'dd/MM/yyyy' : 'MM/dd/yyyy'\n}\n\nfunction getPatternForPart(part: Intl.DateTimeFormatPart) {\n if (supports.dateTimeFormatToParts()) {\n switch (part.type) {\n case 'day':\n return 'd'.repeat(part.value.length)\n case 'month':\n return 'M'.repeat(part.value.length)\n case 'year':\n return 'y'.repeat(part.value.length)\n case 'literal':\n return part.value\n default:\n console.log('Unsupported date part', part)\n return ''\n }\n }\n\n console.log('Unsupported detectDateTimeFormatToParts')\n return ''\n}\n", "//HACK: Use proper imports once the main workspace (`ulule`) uses date-fns v2\n//@ts-expect-error: the export is not typed, but the previous lines provides\n//the correct types\nexport * from '../../../node_modules/date-fns/index'\n", "// TODO: HACK: Use proper imports once the main workspace (`ulule`) uses date-fns v2\n// @ts-ignore\nimport en from '../../../../node_modules/date-fns/locale/en-US'\n// @ts-ignore\nimport fr from '../../../../node_modules/date-fns/locale/fr'\n// @ts-ignore\nimport es from '../../../../node_modules/date-fns/locale/es'\n// @ts-ignore\nimport ca from '../../../../node_modules/date-fns/locale/en-CA'\n// @ts-ignore\nimport it from '../../../../node_modules/date-fns/locale/it'\n// @ts-ignore\nimport de from '../../../../node_modules/date-fns/locale/de'\n// @ts-ignore\nimport nl from '../../../../node_modules/date-fns/locale/nl'\nexport const locales = {\n en,\n fr,\n es,\n ca,\n it,\n de,\n nl,\n}\n\nexport const defaultLocaleName = 'en'\n", "import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary French locale.\n * @language French\n * @iso-639-2 fra\n * @author Jean Dupouy [@izeau]{@link https://github.com/izeau}\n * @author Fran\u00E7ois B [@fbonzon]{@link https://github.com/fbonzon}\n */\nvar locale = {\n code: 'fr',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4\n }\n};\nexport default locale;", "var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'moins d\u2019une seconde',\n other: 'moins de {{count}} secondes'\n },\n xSeconds: {\n one: '1 seconde',\n other: '{{count}} secondes'\n },\n halfAMinute: '30 secondes',\n lessThanXMinutes: {\n one: 'moins d\u2019une minute',\n other: 'moins de {{count}} minutes'\n },\n xMinutes: {\n one: '1 minute',\n other: '{{count}} minutes'\n },\n aboutXHours: {\n one: 'environ 1 heure',\n other: 'environ {{count}} heures'\n },\n xHours: {\n one: '1 heure',\n other: '{{count}} heures'\n },\n xDays: {\n one: '1 jour',\n other: '{{count}} jours'\n },\n aboutXWeeks: {\n one: 'environ 1 semaine',\n other: 'environ {{count}} semaines'\n },\n xWeeks: {\n one: '1 semaine',\n other: '{{count}} semaines'\n },\n aboutXMonths: {\n one: 'environ 1 mois',\n other: 'environ {{count}} mois'\n },\n xMonths: {\n one: '1 mois',\n other: '{{count}} mois'\n },\n aboutXYears: {\n one: 'environ 1 an',\n other: 'environ {{count}} ans'\n },\n xYears: {\n one: '1 an',\n other: '{{count}} ans'\n },\n overXYears: {\n one: 'plus d\u2019un an',\n other: 'plus de {{count}} ans'\n },\n almostXYears: {\n one: 'presqu\u2019un an',\n other: 'presque {{count}} ans'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var form = formatDistanceLocale[token];\n if (typeof form === 'string') {\n result = form;\n } else if (count === 1) {\n result = form.one;\n } else {\n result = form.other.replace('{{count}}', String(count));\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'dans ' + result;\n } else {\n return 'il y a ' + result;\n }\n }\n return result;\n};\nexport default formatDistance;", "import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: 'EEEE d MMMM y',\n long: 'd MMMM y',\n medium: 'd MMM y',\n short: 'dd/MM/y'\n};\nvar timeFormats = {\n full: 'HH:mm:ss zzzz',\n long: 'HH:mm:ss z',\n medium: 'HH:mm:ss',\n short: 'HH:mm'\n};\nvar dateTimeFormats = {\n full: \"{{date}} '\u00E0' {{time}}\",\n long: \"{{date}} '\u00E0' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;", "export default function buildFormatLongFn(args) {\n return function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n // TODO: Remove String()\n var width = options.width ? String(options.width) : args.defaultWidth;\n var format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}", "var formatRelativeLocale = {\n lastWeek: \"eeee 'dernier \u00E0' p\",\n yesterday: \"'hier \u00E0' p\",\n today: \"'aujourd\u2019hui \u00E0' p\",\n tomorrow: \"'demain \u00E0' p'\",\n nextWeek: \"eeee 'prochain \u00E0' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n};\nexport default formatRelative;", "import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['av. J.-C', 'ap. J.-C'],\n abbreviated: ['av. J.-C', 'ap. J.-C'],\n wide: ['avant J\u00E9sus-Christ', 'apr\u00E8s J\u00E9sus-Christ']\n};\nvar quarterValues = {\n narrow: ['T1', 'T2', 'T3', 'T4'],\n abbreviated: ['1er trim.', '2\u00E8me trim.', '3\u00E8me trim.', '4\u00E8me trim.'],\n wide: ['1er trimestre', '2\u00E8me trimestre', '3\u00E8me trimestre', '4\u00E8me trimestre']\n};\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['janv.', 'f\u00E9vr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'ao\u00FBt', 'sept.', 'oct.', 'nov.', 'd\u00E9c.'],\n wide: ['janvier', 'f\u00E9vrier', 'mars', 'avril', 'mai', 'juin', 'juillet', 'ao\u00FBt', 'septembre', 'octobre', 'novembre', 'd\u00E9cembre']\n};\nvar dayValues = {\n narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],\n short: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'],\n abbreviated: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],\n wide: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'AM',\n pm: 'PM',\n midnight: 'minuit',\n noon: 'midi',\n morning: 'mat.',\n afternoon: 'ap.m.',\n evening: 'soir',\n night: 'mat.'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'minuit',\n noon: 'midi',\n morning: 'matin',\n afternoon: 'apr\u00E8s-midi',\n evening: 'soir',\n night: 'matin'\n },\n wide: {\n am: 'AM',\n pm: 'PM',\n midnight: 'minuit',\n noon: 'midi',\n morning: 'du matin',\n afternoon: 'de l\u2019apr\u00E8s-midi',\n evening: 'du soir',\n night: 'du matin'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, options) {\n var number = Number(dirtyNumber);\n var unit = options === null || options === void 0 ? void 0 : options.unit;\n if (number === 0) return '0';\n var feminineUnits = ['year', 'week', 'hour', 'minute', 'second'];\n var suffix;\n if (number === 1) {\n suffix = unit && feminineUnits.includes(unit) ? '\u00E8re' : 'er';\n } else {\n suffix = '\u00E8me';\n }\n return number + suffix;\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide'\n })\n};\nexport default localize;", "export default function buildLocalizeFn(args) {\n return function (dirtyIndex, options) {\n var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';\n var valuesArray;\n if (context === 'formatting' && args.formattingValues) {\n var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;\n valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n var _defaultWidth = args.defaultWidth;\n var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;\n valuesArray = args.values[_width] || args.values[_defaultWidth];\n }\n var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;\n // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}", "import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(i\u00E8me|\u00E8re|\u00E8me|er|e)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(av\\.J\\.C|ap\\.J\\.C|ap\\.J\\.-C)/i,\n abbreviated: /^(av\\.J\\.-C|av\\.J-C|apr\\.J\\.-C|apr\\.J-C|ap\\.J-C)/i,\n wide: /^(avant J\u00E9sus-Christ|apr\u00E8s J\u00E9sus-Christ)/i\n};\nvar parseEraPatterns = {\n any: [/^av/i, /^ap/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^T?[1234]/i,\n abbreviated: /^[1234](er|\u00E8me|e)? trim\\.?/i,\n wide: /^[1234](er|\u00E8me|e)? trimestre/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(janv|f\u00E9vr|mars|avr|mai|juin|juill|juil|ao\u00FBt|sept|oct|nov|d\u00E9c)\\.?/i,\n wide: /^(janvier|f\u00E9vrier|mars|avril|mai|juin|juillet|ao\u00FBt|septembre|octobre|novembre|d\u00E9cembre)/i\n};\nvar parseMonthPatterns = {\n 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],\n any: [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n narrow: /^[lmjvsd]/i,\n short: /^(di|lu|ma|me|je|ve|sa)/i,\n abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\\.?/i,\n wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i\n};\nvar parseDayPatterns = {\n narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],\n any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|minuit|midi|mat\\.?|ap\\.?m\\.?|soir|nuit)/i,\n any: /^([ap]\\.?\\s?m\\.?|du matin|de l'apr\u00E8s[-\\s]midi|du soir|de la nuit)/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^min/i,\n noon: /^mid/i,\n morning: /mat/i,\n afternoon: /ap/i,\n evening: /soir/i,\n night: /nuit/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;", "export default function buildMatchFn(args) {\n return function (string) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var width = options.width;\n var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\n var matchResult = string.match(matchPattern);\n if (!matchResult) {\n return null;\n }\n var matchedString = matchResult[0];\n var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\n var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {\n return pattern.test(matchedString);\n }) : findKey(parsePatterns, function (pattern) {\n return pattern.test(matchedString);\n });\n var value;\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback ? options.valueCallback(value) : value;\n var rest = string.slice(matchedString.length);\n return {\n value: value,\n rest: rest\n };\n };\n}\nfunction findKey(object, predicate) {\n for (var key in object) {\n if (object.hasOwnProperty(key) && predicate(object[key])) {\n return key;\n }\n }\n return undefined;\n}\nfunction findIndex(array, predicate) {\n for (var key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}", "export default function buildMatchPatternFn(args) {\n return function (string) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n var matchedString = matchResult[0];\n var parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\n value = options.valueCallback ? options.valueCallback(value) : value;\n var rest = string.slice(matchedString.length);\n return {\n value: value,\n rest: rest\n };\n };\n}", "import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Spanish locale.\n * @language Spanish\n * @iso-639-2 spa\n * @author Juan Angosto [@juanangosto]{@link https://github.com/juanangosto}\n * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa}\n * @author Fernando Ag\u00FCero [@fjaguero]{@link https://github.com/fjaguero}\n * @author Gast\u00F3n Haro [@harogaston]{@link https://github.com/harogaston}\n * @author Yago Carballo [@YagoCarballo]{@link https://github.com/YagoCarballo}\n */\nvar locale = {\n code: 'es',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 1\n }\n};\nexport default locale;", "var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'menos de un segundo',\n other: 'menos de {{count}} segundos'\n },\n xSeconds: {\n one: '1 segundo',\n other: '{{count}} segundos'\n },\n halfAMinute: 'medio minuto',\n lessThanXMinutes: {\n one: 'menos de un minuto',\n other: 'menos de {{count}} minutos'\n },\n xMinutes: {\n one: '1 minuto',\n other: '{{count}} minutos'\n },\n aboutXHours: {\n one: 'alrededor de 1 hora',\n other: 'alrededor de {{count}} horas'\n },\n xHours: {\n one: '1 hora',\n other: '{{count}} horas'\n },\n xDays: {\n one: '1 d\u00EDa',\n other: '{{count}} d\u00EDas'\n },\n aboutXWeeks: {\n one: 'alrededor de 1 semana',\n other: 'alrededor de {{count}} semanas'\n },\n xWeeks: {\n one: '1 semana',\n other: '{{count}} semanas'\n },\n aboutXMonths: {\n one: 'alrededor de 1 mes',\n other: 'alrededor de {{count}} meses'\n },\n xMonths: {\n one: '1 mes',\n other: '{{count}} meses'\n },\n aboutXYears: {\n one: 'alrededor de 1 a\u00F1o',\n other: 'alrededor de {{count}} a\u00F1os'\n },\n xYears: {\n one: '1 a\u00F1o',\n other: '{{count}} a\u00F1os'\n },\n overXYears: {\n one: 'm\u00E1s de 1 a\u00F1o',\n other: 'm\u00E1s de {{count}} a\u00F1os'\n },\n almostXYears: {\n one: 'casi 1 a\u00F1o',\n other: 'casi {{count}} a\u00F1os'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', count.toString());\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'en ' + result;\n } else {\n return 'hace ' + result;\n }\n }\n return result;\n};\nexport default formatDistance;", "import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: \"EEEE, d 'de' MMMM 'de' y\",\n long: \"d 'de' MMMM 'de' y\",\n medium: 'd MMM y',\n short: 'dd/MM/y'\n};\nvar timeFormats = {\n full: 'HH:mm:ss zzzz',\n long: 'HH:mm:ss z',\n medium: 'HH:mm:ss',\n short: 'HH:mm'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'a las' {{time}}\",\n long: \"{{date}} 'a las' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;", "var formatRelativeLocale = {\n lastWeek: \"'el' eeee 'pasado a la' p\",\n yesterday: \"'ayer a la' p\",\n today: \"'hoy a la' p\",\n tomorrow: \"'ma\u00F1ana a la' p\",\n nextWeek: \"eeee 'a la' p\",\n other: 'P'\n};\nvar formatRelativeLocalePlural = {\n lastWeek: \"'el' eeee 'pasado a las' p\",\n yesterday: \"'ayer a las' p\",\n today: \"'hoy a las' p\",\n tomorrow: \"'ma\u00F1ana a las' p\",\n nextWeek: \"eeee 'a las' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, _baseDate, _options) {\n if (date.getUTCHours() !== 1) {\n return formatRelativeLocalePlural[token];\n } else {\n return formatRelativeLocale[token];\n }\n};\nexport default formatRelative;", "import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['AC', 'DC'],\n abbreviated: ['AC', 'DC'],\n wide: ['antes de cristo', 'despu\u00E9s de cristo']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['T1', 'T2', 'T3', 'T4'],\n wide: ['1\u00BA trimestre', '2\u00BA trimestre', '3\u00BA trimestre', '4\u00BA trimestre']\n};\nvar monthValues = {\n narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'],\n abbreviated: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'],\n wide: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre']\n};\nvar dayValues = {\n narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'],\n short: ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 's\u00E1'],\n abbreviated: ['dom', 'lun', 'mar', 'mi\u00E9', 'jue', 'vie', 's\u00E1b'],\n wide: ['domingo', 'lunes', 'martes', 'mi\u00E9rcoles', 'jueves', 'viernes', 's\u00E1bado']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mn',\n noon: 'md',\n morning: 'ma\u00F1ana',\n afternoon: 'tarde',\n evening: 'tarde',\n night: 'noche'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'medianoche',\n noon: 'mediodia',\n morning: 'ma\u00F1ana',\n afternoon: 'tarde',\n evening: 'tarde',\n night: 'noche'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'medianoche',\n noon: 'mediodia',\n morning: 'ma\u00F1ana',\n afternoon: 'tarde',\n evening: 'tarde',\n night: 'noche'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mn',\n noon: 'md',\n morning: 'de la ma\u00F1ana',\n afternoon: 'de la tarde',\n evening: 'de la tarde',\n night: 'de la noche'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'medianoche',\n noon: 'mediodia',\n morning: 'de la ma\u00F1ana',\n afternoon: 'de la tarde',\n evening: 'de la tarde',\n night: 'de la noche'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'medianoche',\n noon: 'mediodia',\n morning: 'de la ma\u00F1ana',\n afternoon: 'de la tarde',\n evening: 'de la tarde',\n night: 'de la noche'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n var number = Number(dirtyNumber);\n return number + '\u00BA';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return Number(quarter) - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;", "import buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nimport buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(\u00BA)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(ac|dc|a|d)/i,\n abbreviated: /^(a\\.?\\s?c\\.?|a\\.?\\s?e\\.?\\s?c\\.?|d\\.?\\s?c\\.?|e\\.?\\s?c\\.?)/i,\n wide: /^(antes de cristo|antes de la era com[u\u00FA]n|despu[e\u00E9]s de cristo|era com[u\u00FA]n)/i\n};\nvar parseEraPatterns = {\n any: [/^ac/i, /^dc/i],\n wide: [/^(antes de cristo|antes de la era com[u\u00FA]n)/i, /^(despu[e\u00E9]s de cristo|era com[u\u00FA]n)/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^T[1234]/i,\n wide: /^[1234](\u00BA)? trimestre/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[efmajsond]/i,\n abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,\n wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i\n};\nvar parseMonthPatterns = {\n narrow: [/^e/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n any: [/^en/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]\n};\nvar matchDayPatterns = {\n narrow: /^[dlmjvs]/i,\n short: /^(do|lu|ma|mi|ju|vi|s[\u00E1a])/i,\n abbreviated: /^(dom|lun|mar|mi[\u00E9e]|jue|vie|s[\u00E1a]b)/i,\n wide: /^(domingo|lunes|martes|mi[\u00E9e]rcoles|jueves|viernes|s[\u00E1a]bado)/i\n};\nvar parseDayPatterns = {\n narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],\n any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|mn|md|(de la|a las) (ma\u00F1ana|tarde|noche))/i,\n any: /^([ap]\\.?\\s?m\\.?|medianoche|mediodia|(de la|a las) (ma\u00F1ana|tarde|noche))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mn/i,\n noon: /^md/i,\n morning: /ma\u00F1ana/i,\n afternoon: /tarde/i,\n evening: /tarde/i,\n night: /noche/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;", "import formatRelative from \"../en-US/_lib/formatRelative/index.js\";\nimport localize from \"../en-US/_lib/localize/index.js\";\nimport match from \"../en-US/_lib/match/index.js\";\nimport formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (Canada).\n * @language English\n * @iso-639-2 eng\n * @author Mark Owsiak [@markowsiak]{@link https://github.com/markowsiak}\n * @author Marco Imperatore [@mimperatore]{@link https://github.com/mimperatore}\n */\nvar locale = {\n code: 'en-CA',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1\n }\n};\nexport default locale;", "var formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n};\nexport default formatRelative;", "import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['B', 'A'],\n abbreviated: ['BC', 'AD'],\n wide: ['Before Christ', 'Anno Domini']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\nvar dayValues = {\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n var number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n var rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + 'st';\n case 2:\n return number + 'nd';\n case 3:\n return number + 'rd';\n }\n }\n return number + 'th';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;", "import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i\n};\nvar parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\nvar parseMonthPatterns = {\n 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],\n 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]\n};\nvar matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\nvar parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;", "var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'less than a second',\n other: 'less than {{count}} seconds'\n },\n xSeconds: {\n one: 'a second',\n other: '{{count}} seconds'\n },\n halfAMinute: 'half a minute',\n lessThanXMinutes: {\n one: 'less than a minute',\n other: 'less than {{count}} minutes'\n },\n xMinutes: {\n one: 'a minute',\n other: '{{count}} minutes'\n },\n aboutXHours: {\n one: 'about an hour',\n other: 'about {{count}} hours'\n },\n xHours: {\n one: 'an hour',\n other: '{{count}} hours'\n },\n xDays: {\n one: 'a day',\n other: '{{count}} days'\n },\n aboutXWeeks: {\n one: 'about a week',\n other: 'about {{count}} weeks'\n },\n xWeeks: {\n one: 'a week',\n other: '{{count}} weeks'\n },\n aboutXMonths: {\n one: 'about a month',\n other: 'about {{count}} months'\n },\n xMonths: {\n one: 'a month',\n other: '{{count}} months'\n },\n aboutXYears: {\n one: 'about a year',\n other: 'about {{count}} years'\n },\n xYears: {\n one: 'a year',\n other: '{{count}} years'\n },\n overXYears: {\n one: 'over a year',\n other: 'over {{count}} years'\n },\n almostXYears: {\n one: 'almost a year',\n other: 'almost {{count}} years'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', count.toString());\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'in ' + result;\n } else {\n return result + ' ago';\n }\n }\n return result;\n};\nexport default formatDistance;", "import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: 'EEEE, MMMM do, yyyy',\n long: 'MMMM do, yyyy',\n medium: 'MMM d, yyyy',\n short: 'yyyy-MM-dd'\n};\nvar timeFormats = {\n full: 'h:mm:ss a zzzz',\n long: 'h:mm:ss a z',\n medium: 'h:mm:ss a',\n short: 'h:mm a'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;", "import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Italian locale.\n * @language Italian\n * @iso-639-2 ita\n * @author Alberto Restifo [@albertorestifo]{@link https://github.com/albertorestifo}\n * @author Giovanni Polimeni [@giofilo]{@link https://github.com/giofilo}\n * @author Vincenzo Carrese [@vin-car]{@link https://github.com/vin-car}\n */\nvar locale = {\n code: 'it',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4\n }\n};\nexport default locale;", "var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'meno di un secondo',\n other: 'meno di {{count}} secondi'\n },\n xSeconds: {\n one: 'un secondo',\n other: '{{count}} secondi'\n },\n halfAMinute: 'alcuni secondi',\n lessThanXMinutes: {\n one: 'meno di un minuto',\n other: 'meno di {{count}} minuti'\n },\n xMinutes: {\n one: 'un minuto',\n other: '{{count}} minuti'\n },\n aboutXHours: {\n one: \"circa un'ora\",\n other: 'circa {{count}} ore'\n },\n xHours: {\n one: \"un'ora\",\n other: '{{count}} ore'\n },\n xDays: {\n one: 'un giorno',\n other: '{{count}} giorni'\n },\n aboutXWeeks: {\n one: 'circa una settimana',\n other: 'circa {{count}} settimane'\n },\n xWeeks: {\n one: 'una settimana',\n other: '{{count}} settimane'\n },\n aboutXMonths: {\n one: 'circa un mese',\n other: 'circa {{count}} mesi'\n },\n xMonths: {\n one: 'un mese',\n other: '{{count}} mesi'\n },\n aboutXYears: {\n one: 'circa un anno',\n other: 'circa {{count}} anni'\n },\n xYears: {\n one: 'un anno',\n other: '{{count}} anni'\n },\n overXYears: {\n one: 'pi\u00F9 di un anno',\n other: 'pi\u00F9 di {{count}} anni'\n },\n almostXYears: {\n one: 'quasi un anno',\n other: 'quasi {{count}} anni'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', count.toString());\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'tra ' + result;\n } else {\n return result + ' fa';\n }\n }\n return result;\n};\nexport default formatDistance;", "import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: 'EEEE d MMMM y',\n long: 'd MMMM y',\n medium: 'd MMM y',\n short: 'dd/MM/y'\n};\nvar timeFormats = {\n full: 'HH:mm:ss zzzz',\n long: 'HH:mm:ss z',\n medium: 'HH:mm:ss',\n short: 'HH:mm'\n};\nvar dateTimeFormats = {\n full: '{{date}} {{time}}',\n long: '{{date}} {{time}}',\n medium: '{{date}} {{time}}',\n short: '{{date}} {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;", "import isSameUTCWeek from \"../../../../_lib/isSameUTCWeek/index.js\";\nvar weekdays = ['domenica', 'luned\u00EC', 'marted\u00EC', 'mercoled\u00EC', 'gioved\u00EC', 'venerd\u00EC', 'sabato'];\nfunction _lastWeek(day) {\n switch (day) {\n case 0:\n return \"'domenica scorsa alle' p\";\n default:\n return \"'\" + weekdays[day] + \" scorso alle' p\";\n }\n}\nfunction thisWeek(day) {\n return \"'\" + weekdays[day] + \" alle' p\";\n}\nfunction _nextWeek(day) {\n switch (day) {\n case 0:\n return \"'domenica prossima alle' p\";\n default:\n return \"'\" + weekdays[day] + \" prossimo alle' p\";\n }\n}\nvar formatRelativeLocale = {\n lastWeek: function lastWeek(date, baseDate, options) {\n var day = date.getUTCDay();\n if (isSameUTCWeek(date, baseDate, options)) {\n return thisWeek(day);\n } else {\n return _lastWeek(day);\n }\n },\n yesterday: \"'ieri alle' p\",\n today: \"'oggi alle' p\",\n tomorrow: \"'domani alle' p\",\n nextWeek: function nextWeek(date, baseDate, options) {\n var day = date.getUTCDay();\n if (isSameUTCWeek(date, baseDate, options)) {\n return thisWeek(day);\n } else {\n return _nextWeek(day);\n }\n },\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, baseDate, options) {\n var format = formatRelativeLocale[token];\n if (typeof format === 'function') {\n return format(date, baseDate, options);\n }\n return format;\n};\nexport default formatRelative;", "import requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nexport default function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {\n requiredArgs(2, arguments);\n var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options);\n var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options);\n return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();\n}", "export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}", "import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeek(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions = getDefaultOptions();\n var weekStartsOn = toInteger((_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 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n var date = toDate(dirtyDate);\n var day = date.getUTCDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n date.setUTCDate(date.getUTCDate() - diff);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n}", "import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}", "function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };", "export default function toInteger(dirtyNumber) {\n if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n return NaN;\n }\n var number = Number(dirtyNumber);\n if (isNaN(number)) {\n return number;\n }\n return number < 0 ? Math.ceil(number) : Math.floor(number);\n}", "var defaultOptions = {};\nexport function getDefaultOptions() {\n return defaultOptions;\n}\nexport function setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}", "import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['aC', 'dC'],\n abbreviated: ['a.C.', 'd.C.'],\n wide: ['avanti Cristo', 'dopo Cristo']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['T1', 'T2', 'T3', 'T4'],\n wide: ['1\u00BA trimestre', '2\u00BA trimestre', '3\u00BA trimestre', '4\u00BA trimestre']\n};\nvar monthValues = {\n narrow: ['G', 'F', 'M', 'A', 'M', 'G', 'L', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],\n wide: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre']\n};\nvar dayValues = {\n narrow: ['D', 'L', 'M', 'M', 'G', 'V', 'S'],\n short: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],\n abbreviated: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],\n wide: ['domenica', 'luned\u00EC', 'marted\u00EC', 'mercoled\u00EC', 'gioved\u00EC', 'venerd\u00EC', 'sabato']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'm.',\n pm: 'p.',\n midnight: 'mezzanotte',\n noon: 'mezzogiorno',\n morning: 'mattina',\n afternoon: 'pomeriggio',\n evening: 'sera',\n night: 'notte'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'mezzanotte',\n noon: 'mezzogiorno',\n morning: 'mattina',\n afternoon: 'pomeriggio',\n evening: 'sera',\n night: 'notte'\n },\n wide: {\n am: 'AM',\n pm: 'PM',\n midnight: 'mezzanotte',\n noon: 'mezzogiorno',\n morning: 'mattina',\n afternoon: 'pomeriggio',\n evening: 'sera',\n night: 'notte'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'm.',\n pm: 'p.',\n midnight: 'mezzanotte',\n noon: 'mezzogiorno',\n morning: 'di mattina',\n afternoon: 'del pomeriggio',\n evening: 'di sera',\n night: 'di notte'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'mezzanotte',\n noon: 'mezzogiorno',\n morning: 'di mattina',\n afternoon: 'del pomeriggio',\n evening: 'di sera',\n night: 'di notte'\n },\n wide: {\n am: 'AM',\n pm: 'PM',\n midnight: 'mezzanotte',\n noon: 'mezzogiorno',\n morning: 'di mattina',\n afternoon: 'del pomeriggio',\n evening: 'di sera',\n night: 'di notte'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n var number = Number(dirtyNumber);\n return String(number);\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;", "import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(\u00BA)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(aC|dC)/i,\n abbreviated: /^(a\\.?\\s?C\\.?|a\\.?\\s?e\\.?\\s?v\\.?|d\\.?\\s?C\\.?|e\\.?\\s?v\\.?)/i,\n wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i\n};\nvar parseEraPatterns = {\n any: [/^a/i, /^(d|e)/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^t[1234]/i,\n wide: /^[1234](\u00BA)? trimestre/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[gfmalsond]/i,\n abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,\n wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i\n};\nvar parseMonthPatterns = {\n narrow: [/^g/i, /^f/i, /^m/i, /^a/i, /^m/i, /^g/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n any: [/^ge/i, /^f/i, /^mar/i, /^ap/i, /^mag/i, /^gi/i, /^l/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n narrow: /^[dlmgvs]/i,\n short: /^(do|lu|ma|me|gi|ve|sa)/i,\n abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i,\n wide: /^(domenica|luned[i|\u00EC]|marted[i|\u00EC]|mercoled[i|\u00EC]|gioved[i|\u00EC]|venerd[i|\u00EC]|sabato)/i\n};\nvar parseDayPatterns = {\n narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i],\n any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|m\\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,\n any: /^([ap]\\.?\\s?m\\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mezza/i,\n noon: /^mezzo/i,\n morning: /mattina/i,\n afternoon: /pomeriggio/i,\n evening: /sera/i,\n night: /notte/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;", "import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary German locale.\n * @language German\n * @iso-639-2 deu\n * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu}\n * @author Asia [@asia-t]{@link https://github.com/asia-t}\n * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo}\n * @author RomanErnst [@pex]{@link https://github.com/pex}\n * @author Philipp Keck [@Philipp91]{@link https://github.com/Philipp91}\n */\nvar locale = {\n code: 'de',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4\n }\n};\nexport default locale;", "var formatDistanceLocale = {\n lessThanXSeconds: {\n standalone: {\n one: 'weniger als 1 Sekunde',\n other: 'weniger als {{count}} Sekunden'\n },\n withPreposition: {\n one: 'weniger als 1 Sekunde',\n other: 'weniger als {{count}} Sekunden'\n }\n },\n xSeconds: {\n standalone: {\n one: '1 Sekunde',\n other: '{{count}} Sekunden'\n },\n withPreposition: {\n one: '1 Sekunde',\n other: '{{count}} Sekunden'\n }\n },\n halfAMinute: {\n standalone: 'halbe Minute',\n withPreposition: 'halben Minute'\n },\n lessThanXMinutes: {\n standalone: {\n one: 'weniger als 1 Minute',\n other: 'weniger als {{count}} Minuten'\n },\n withPreposition: {\n one: 'weniger als 1 Minute',\n other: 'weniger als {{count}} Minuten'\n }\n },\n xMinutes: {\n standalone: {\n one: '1 Minute',\n other: '{{count}} Minuten'\n },\n withPreposition: {\n one: '1 Minute',\n other: '{{count}} Minuten'\n }\n },\n aboutXHours: {\n standalone: {\n one: 'etwa 1 Stunde',\n other: 'etwa {{count}} Stunden'\n },\n withPreposition: {\n one: 'etwa 1 Stunde',\n other: 'etwa {{count}} Stunden'\n }\n },\n xHours: {\n standalone: {\n one: '1 Stunde',\n other: '{{count}} Stunden'\n },\n withPreposition: {\n one: '1 Stunde',\n other: '{{count}} Stunden'\n }\n },\n xDays: {\n standalone: {\n one: '1 Tag',\n other: '{{count}} Tage'\n },\n withPreposition: {\n one: '1 Tag',\n other: '{{count}} Tagen'\n }\n },\n aboutXWeeks: {\n standalone: {\n one: 'etwa 1 Woche',\n other: 'etwa {{count}} Wochen'\n },\n withPreposition: {\n one: 'etwa 1 Woche',\n other: 'etwa {{count}} Wochen'\n }\n },\n xWeeks: {\n standalone: {\n one: '1 Woche',\n other: '{{count}} Wochen'\n },\n withPreposition: {\n one: '1 Woche',\n other: '{{count}} Wochen'\n }\n },\n aboutXMonths: {\n standalone: {\n one: 'etwa 1 Monat',\n other: 'etwa {{count}} Monate'\n },\n withPreposition: {\n one: 'etwa 1 Monat',\n other: 'etwa {{count}} Monaten'\n }\n },\n xMonths: {\n standalone: {\n one: '1 Monat',\n other: '{{count}} Monate'\n },\n withPreposition: {\n one: '1 Monat',\n other: '{{count}} Monaten'\n }\n },\n aboutXYears: {\n standalone: {\n one: 'etwa 1 Jahr',\n other: 'etwa {{count}} Jahre'\n },\n withPreposition: {\n one: 'etwa 1 Jahr',\n other: 'etwa {{count}} Jahren'\n }\n },\n xYears: {\n standalone: {\n one: '1 Jahr',\n other: '{{count}} Jahre'\n },\n withPreposition: {\n one: '1 Jahr',\n other: '{{count}} Jahren'\n }\n },\n overXYears: {\n standalone: {\n one: 'mehr als 1 Jahr',\n other: 'mehr als {{count}} Jahre'\n },\n withPreposition: {\n one: 'mehr als 1 Jahr',\n other: 'mehr als {{count}} Jahren'\n }\n },\n almostXYears: {\n standalone: {\n one: 'fast 1 Jahr',\n other: 'fast {{count}} Jahre'\n },\n withPreposition: {\n one: 'fast 1 Jahr',\n other: 'fast {{count}} Jahren'\n }\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone;\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', String(count));\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'in ' + result;\n } else {\n return 'vor ' + result;\n }\n }\n return result;\n};\nexport default formatDistance;", "import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\n// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008\nvar dateFormats = {\n full: 'EEEE, do MMMM y',\n // Montag, 7. Januar 2018\n long: 'do MMMM y',\n // 7. Januar 2018\n medium: 'do MMM y',\n // 7. Jan. 2018\n short: 'dd.MM.y' // 07.01.2018\n};\n\nvar timeFormats = {\n full: 'HH:mm:ss zzzz',\n long: 'HH:mm:ss z',\n medium: 'HH:mm:ss',\n short: 'HH:mm'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'um' {{time}}\",\n long: \"{{date}} 'um' {{time}}\",\n medium: '{{date}} {{time}}',\n short: '{{date}} {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;", "var formatRelativeLocale = {\n lastWeek: \"'letzten' eeee 'um' p\",\n yesterday: \"'gestern um' p\",\n today: \"'heute um' p\",\n tomorrow: \"'morgen um' p\",\n nextWeek: \"eeee 'um' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n};\nexport default formatRelative;", "import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['v.Chr.', 'n.Chr.'],\n abbreviated: ['v.Chr.', 'n.Chr.'],\n wide: ['vor Christus', 'nach Christus']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal']\n};\n\n// Note: in German, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['Jan', 'Feb', 'M\u00E4r', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],\n wide: ['Januar', 'Februar', 'M\u00E4rz', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']\n};\n\n// https://st.unicode.org/cldr-apps/v#/de/Gregorian/\nvar formattingMonthValues = {\n narrow: monthValues.narrow,\n abbreviated: ['Jan.', 'Feb.', 'M\u00E4rz', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'],\n wide: monthValues.wide\n};\nvar dayValues = {\n narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'],\n short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],\n abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'],\n wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']\n};\n\n// https://www.unicode.org/cldr/charts/32/summary/de.html#1881\nvar dayPeriodValues = {\n narrow: {\n am: 'vm.',\n pm: 'nm.',\n midnight: 'Mitternacht',\n noon: 'Mittag',\n morning: 'Morgen',\n afternoon: 'Nachm.',\n evening: 'Abend',\n night: 'Nacht'\n },\n abbreviated: {\n am: 'vorm.',\n pm: 'nachm.',\n midnight: 'Mitternacht',\n noon: 'Mittag',\n morning: 'Morgen',\n afternoon: 'Nachmittag',\n evening: 'Abend',\n night: 'Nacht'\n },\n wide: {\n am: 'vormittags',\n pm: 'nachmittags',\n midnight: 'Mitternacht',\n noon: 'Mittag',\n morning: 'Morgen',\n afternoon: 'Nachmittag',\n evening: 'Abend',\n night: 'Nacht'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'vm.',\n pm: 'nm.',\n midnight: 'Mitternacht',\n noon: 'Mittag',\n morning: 'morgens',\n afternoon: 'nachm.',\n evening: 'abends',\n night: 'nachts'\n },\n abbreviated: {\n am: 'vorm.',\n pm: 'nachm.',\n midnight: 'Mitternacht',\n noon: 'Mittag',\n morning: 'morgens',\n afternoon: 'nachmittags',\n evening: 'abends',\n night: 'nachts'\n },\n wide: {\n am: 'vormittags',\n pm: 'nachmittags',\n midnight: 'Mitternacht',\n noon: 'Mittag',\n morning: 'morgens',\n afternoon: 'nachmittags',\n evening: 'abends',\n night: 'nachts'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber) {\n var number = Number(dirtyNumber);\n return number + '.';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n formattingValues: formattingMonthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;", "import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(\\.)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(v\\.? ?Chr\\.?|n\\.? ?Chr\\.?)/i,\n abbreviated: /^(v\\.? ?Chr\\.?|n\\.? ?Chr\\.?)/i,\n wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i\n};\nvar parseEraPatterns = {\n any: [/^v/i, /^n/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](\\.)? Quartal/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(j[a\u00E4]n|feb|m\u00E4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\\.?/i,\n wide: /^(januar|februar|m\u00E4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i\n};\nvar parseMonthPatterns = {\n 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],\n any: [/^j[a\u00E4]/i, /^f/i, /^m\u00E4r/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n narrow: /^[smdmf]/i,\n short: /^(so|mo|di|mi|do|fr|sa)/i,\n abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\\.?/i,\n wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i\n};\nvar parseDayPatterns = {\n any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(vm\\.?|nm\\.?|Mitternacht|Mittag|morgens|nachm\\.?|abends|nachts)/i,\n abbreviated: /^(vorm\\.?|nachm\\.?|Mitternacht|Mittag|morgens|nachm\\.?|abends|nachts)/i,\n wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^v/i,\n pm: /^n/i,\n midnight: /^Mitte/i,\n noon: /^Mitta/i,\n morning: /morgens/i,\n afternoon: /nachmittags/i,\n // will never be matched. Afternoon is matched by `pm`\n evening: /abends/i,\n night: /nachts/i // will never be matched. Night is matched by `pm`\n }\n};\n\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;", "import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Dutch locale.\n * @language Dutch\n * @iso-639-2 nld\n * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder}\n * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk}\n * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb}\n * @author Edo Rivai [@edorivai]{@link https://github.com/edorivai}\n * @author Niels Keurentjes [@curry684]{@link https://github.com/curry684}\n * @author Stefan Vermaas [@stefanvermaas]{@link https://github.com/stefanvermaas}\n */\nvar locale = {\n code: 'nl',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4\n }\n};\nexport default locale;", "var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'minder dan een seconde',\n other: 'minder dan {{count}} seconden'\n },\n xSeconds: {\n one: '1 seconde',\n other: '{{count}} seconden'\n },\n halfAMinute: 'een halve minuut',\n lessThanXMinutes: {\n one: 'minder dan een minuut',\n other: 'minder dan {{count}} minuten'\n },\n xMinutes: {\n one: 'een minuut',\n other: '{{count}} minuten'\n },\n aboutXHours: {\n one: 'ongeveer 1 uur',\n other: 'ongeveer {{count}} uur'\n },\n xHours: {\n one: '1 uur',\n other: '{{count}} uur'\n },\n xDays: {\n one: '1 dag',\n other: '{{count}} dagen'\n },\n aboutXWeeks: {\n one: 'ongeveer 1 week',\n other: 'ongeveer {{count}} weken'\n },\n xWeeks: {\n one: '1 week',\n other: '{{count}} weken'\n },\n aboutXMonths: {\n one: 'ongeveer 1 maand',\n other: 'ongeveer {{count}} maanden'\n },\n xMonths: {\n one: '1 maand',\n other: '{{count}} maanden'\n },\n aboutXYears: {\n one: 'ongeveer 1 jaar',\n other: 'ongeveer {{count}} jaar'\n },\n xYears: {\n one: '1 jaar',\n other: '{{count}} jaar'\n },\n overXYears: {\n one: 'meer dan 1 jaar',\n other: 'meer dan {{count}} jaar'\n },\n almostXYears: {\n one: 'bijna 1 jaar',\n other: 'bijna {{count}} jaar'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', String(count));\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'over ' + result;\n } else {\n return result + ' geleden';\n }\n }\n return result;\n};\nexport default formatDistance;", "import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: 'EEEE d MMMM y',\n long: 'd MMMM y',\n medium: 'd MMM y',\n short: 'dd-MM-y'\n};\nvar timeFormats = {\n full: 'HH:mm:ss zzzz',\n long: 'HH:mm:ss z',\n medium: 'HH:mm:ss',\n short: 'HH:mm'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'om' {{time}}\",\n long: \"{{date}} 'om' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;", "var formatRelativeLocale = {\n lastWeek: \"'afgelopen' eeee 'om' p\",\n yesterday: \"'gisteren om' p\",\n today: \"'vandaag om' p\",\n tomorrow: \"'morgen om' p\",\n nextWeek: \"eeee 'om' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n};\nexport default formatRelative;", "import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['v.C.', 'n.C.'],\n abbreviated: ['v.Chr.', 'n.Chr.'],\n wide: ['voor Christus', 'na Christus']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['K1', 'K2', 'K3', 'K4'],\n wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal']\n};\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],\n wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december']\n};\nvar dayValues = {\n narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'],\n short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],\n abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],\n wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'AM',\n pm: 'PM',\n midnight: 'middernacht',\n noon: 'het middaguur',\n morning: \"'s ochtends\",\n afternoon: \"'s middags\",\n evening: \"'s avonds\",\n night: \"'s nachts\"\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'middernacht',\n noon: 'het middaguur',\n morning: \"'s ochtends\",\n afternoon: \"'s middags\",\n evening: \"'s avonds\",\n night: \"'s nachts\"\n },\n wide: {\n am: 'AM',\n pm: 'PM',\n midnight: 'middernacht',\n noon: 'het middaguur',\n morning: \"'s ochtends\",\n afternoon: \"'s middags\",\n evening: \"'s avonds\",\n night: \"'s nachts\"\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n var number = Number(dirtyNumber);\n return number + 'e';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide'\n })\n};\nexport default localize;", "import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)e?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^([vn]\\.? ?C\\.?)/,\n abbreviated: /^([vn]\\. ?Chr\\.?)/,\n wide: /^((voor|na) Christus)/\n};\nvar parseEraPatterns = {\n any: [/^v/, /^n/]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^K[1234]/i,\n wide: /^[1234]e kwartaal/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,\n wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i\n};\nvar parseMonthPatterns = {\n 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],\n any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]\n};\nvar matchDayPatterns = {\n narrow: /^[zmdwv]/i,\n short: /^(zo|ma|di|wo|do|vr|za)/i,\n abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i,\n wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i\n};\nvar parseDayPatterns = {\n narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i],\n any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i]\n};\nvar matchDayPeriodPatterns = {\n any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^am/i,\n pm: /^pm/i,\n midnight: /^middernacht/i,\n noon: /^het middaguur/i,\n morning: /ochtend/i,\n afternoon: /middag/i,\n evening: /avond/i,\n night: /nacht/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;", "import * as date from '@owl-nest/date-fns'\nimport { t } from '@owl-nest/localize'\n\ntype DateCountdown = {\n endingSoon: boolean\n label: string\n value: number | string\n}\n\nconst HOUR = 60 * 60\n\nexport function getCountDown(endDate: Date, short: boolean): DateCountdown {\n const differenceInSecondsBetweenEndDateAndNow = date.differenceInSeconds(endDate, Date.now())\n const differenceInHoursBetweenEndDateAndNow = Math.round(differenceInSecondsBetweenEndDateAndNow / HOUR)\n\n // In short mode, live timer is shown when end date is <= 24h, otherwise when <= 6 hours\n const timeInSecond = short ? 60 * 60 : 60 * 60 * 6\n\n if (differenceInSecondsBetweenEndDateAndNow <= timeInSecond) {\n if (differenceInSecondsBetweenEndDateAndNow <= 0) {\n return {\n endingSoon: true,\n label: short ? t('Finished') : t('campaign ended'),\n value: '-',\n }\n } else {\n return {\n endingSoon: true,\n label: short ? formatSecondsToCountdown(differenceInSecondsBetweenEndDateAndNow, short) : t('before the end'),\n value: formatSecondsToCountdown(differenceInSecondsBetweenEndDateAndNow, false),\n }\n }\n } else if (differenceInHoursBetweenEndDateAndNow <= 48) {\n return {\n endingSoon: true,\n label: short ? t('H-%(nb)s', { nb: differenceInHoursBetweenEndDateAndNow }) : t('hours left'),\n value: differenceInHoursBetweenEndDateAndNow,\n }\n }\n\n // Remaining time is > 48hours\n const differenceInDaysBetweenEndDateAndNow = Math.round(differenceInHoursBetweenEndDateAndNow / 24)\n return {\n endingSoon: false,\n label: short ? t('D-%(nb)s', { nb: differenceInDaysBetweenEndDateAndNow }) : t('days left'),\n value: differenceInDaysBetweenEndDateAndNow,\n }\n}\n\n/**\n * Formats given seconds in countdown format: h if there is more than one hour, : otherwise.\n *\n * @param secondsAmount\n */\nexport function formatSecondsToCountdown(secondsAmount: number, short?: boolean): string {\n const normalizeTime = (time: string): string => (time.length === 1 ? `0${time}` : time)\n\n const milliseconds = secondsAmount * 1000\n const futureDate = new Date(milliseconds)\n const timezoneDiff = futureDate.getTimezoneOffset() / 60\n const dateWithoutTimezoneDiff = date.addHours(futureDate, timezoneDiff)\n\n const hours = normalizeTime(String(date.getHours(dateWithoutTimezoneDiff)))\n const minutes = normalizeTime(String(date.getMinutes(dateWithoutTimezoneDiff)))\n const seconds = normalizeTime(String(date.getSeconds(dateWithoutTimezoneDiff)))\n\n const hoursOutput = hours !== '00' ? `${hours}h` : ''\n const secondsOutput = hours === '00' ? (short ? `${seconds}` : `:${seconds}`) : ''\n\n // NOTE: Different translations are needed because they depend on usage context.\n // In short mode (e.g. Project cards), labels only show minutes and seconds, whereas full mode also features hours.\n if (short) {\n return t('%(min)s min %(sec)s sec', {\n min: minutes,\n sec: secondsOutput,\n })\n } else {\n return `${hoursOutput}${minutes}${secondsOutput}`\n }\n}\n"], "mappings": "m9BAAA,IAAAA,GAAAC,EAAA,CAAAC,GAAAC,KAAA,cAAAC,IAAAC,IAEA,IAAIC,GAAyB,IAAwD,QACrF,OAAO,eAAeJ,GAAS,aAAc,CAC3C,MAAO,EACT,CAAC,EACDA,GAAQ,QAAUK,GAClB,IAAIC,GAAWF,GAAuB,IAAwC,EAC1EG,GAASH,GAAuB,IAA8B,EAC9DI,GAAUJ,GAAuB,IAAgC,EACjEK,GAAUL,GAAuB,GAA6B,EAC9DM,GAAUN,GAAuB,GAAwC,EACzEO,GAAUP,GAAuB,GAAqC,EAwC1E,SAASC,GAAIO,EAAWC,EAAU,CAEhC,MADIH,GAAQ,SAAS,EAAG,SAAS,EAC7B,CAACG,MAAgBP,GAAS,SAASO,CAAQ,IAAM,SAAU,OAAO,IAAI,KAAK,GAAG,EAClF,IAAIC,EAAQD,EAAS,SAAYF,GAAQ,SAASE,EAAS,KAAK,EAAI,EAChEE,EAASF,EAAS,UAAaF,GAAQ,SAASE,EAAS,MAAM,EA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KAAK,EAAE,EAGlGC,KAAiB,KAAO,aAAe,YACpD,CAEA,SAASD,GAAkBE,EAA+B,CACxD,GAAaH,GAAsB,EACjC,OAAQG,EAAK,KAAM,CACjB,IAAK,MACH,MAAO,IAAI,OAAOA,EAAK,MAAM,MAAM,EACrC,IAAK,QACH,MAAO,IAAI,OAAOA,EAAK,MAAM,MAAM,EACrC,IAAK,OACH,MAAO,IAAI,OAAOA,EAAK,MAAM,MAAM,EACrC,IAAK,UACH,OAAOA,EAAK,MACd,QACE,eAAQ,IAAI,wBAAyBA,CAAI,EAClC,EACX,CAGF,eAAQ,IAAI,yCAAyC,EAC9C,EACT", "names": ["require_add", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "add", "_typeof2", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDate", "duration", "years", "months", "weeks", "days", "hours", "minutes", "seconds", "date", "dateWithMonths", "dateWithDays", "minutesToAdd", "secondsToAdd", "msToAdd", "finalDate", "require_isWeekend", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isWeekend", "_index", "_index2", "dirtyDate", "date", "day", "require_isSunday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSunday", "_index", "_index2", "dirtyDate", "require_isSaturday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSaturday", "_index", "_index2", "dirtyDate", "require_addBusinessDays", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "addBusinessDays", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "dirtyDate", "dirtyAmount", "date", "startedOnWeekend", "amount", "hours", "sign", "fullWeeks", "restDays", "require_setISOWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setISOWeekYear", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDate", "dirtyISOWeekYear", "date", "isoWeekYear", "diff", "fourthOfJanuary", "require_addISOWeekYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "addISOWeekYears", "_index", "_index2", "_index3", "_index4", "dirtyDate", "dirtyAmount", "amount", "require_addSeconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "addSeconds", "_index", "_index2", "_index3", "dirtyDate", "dirtyAmount", "amount", "require_areIntervalsOverlapping", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "areIntervalsOverlapping", "_index", "_index2", "intervalLeft", "intervalRight", "options", "leftStartTime", "leftEndTime", "rightStartTime", "rightEndTime", "require_clamp", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "clamp", "_index", "_index2", "_index3", "date", "_ref", "start", "end", "require_closestIndexTo", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "closestIndexTo", "_index", "_index2", "dirtyDateToCompare", "dirtyDatesArray", "dateToCompare", "timeToCompare", "datesArray", "result", "minDistance", "dirtyDate", "index", "currentDate", "distance", "require_closestTo", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "closestTo", "_index", "_index2", "dirtyDateToCompare", "dirtyDatesArray", "dateToCompare", "timeToCompare", "datesArray", "result", "minDistance", "dirtyDate", "currentDate", "distance", "require_compareAsc", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "compareAsc", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "diff", "require_compareDesc", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "compareDesc", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "diff", "require_daysToWeeks", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "daysToWeeks", "_index", "_index2", "days", "weeks", "require_differenceInBusinessDays", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInBusinessDays", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "calendarDifference", "sign", "weeks", "result", "require_differenceInCalendarISOWeekYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInCalendarISOWeekYears", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "require_differenceInCalendarISOWeeks", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInCalendarISOWeeks", "_index", "_index2", "_index3", "MILLISECONDS_IN_WEEK", "dirtyDateLeft", "dirtyDateRight", "startOfISOWeekLeft", "startOfISOWeekRight", "timestampLeft", "timestampRight", "require_differenceInCalendarQuarters", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInCalendarQuarters", "_index", "_index2", "_index3", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "yearDiff", "quarterDiff", "require_differenceInCalendarWeeks", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInCalendarWeeks", "_index", "_index2", "_index3", "MILLISECONDS_IN_WEEK", "dirtyDateLeft", "dirtyDateRight", "options", "startOfWeekLeft", "startOfWeekRight", "timestampLeft", "timestampRight", "require_differenceInDays", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInDays", "_index", "_index2", "_index3", "compareLocalAsc", "dateLeft", "dateRight", "diff", "dirtyDateLeft", "dirtyDateRight", "sign", "difference", "isLastDayNotFull", "result", "require_differenceInMilliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInMilliseconds", "_index", "_index2", "dateLeft", "dateRight", "require_roundingMethods", "__commonJSMin", "exports", "init_define_process_env", "init_sentry_release_injection_stub", "getRoundingMethod", "roundingMap", "value", "defaultRoundingMethod", "method", "require_differenceInHours", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInHours", "_index", "_index2", "_index3", "_index4", "dateLeft", "dateRight", "options", "diff", "require_subISOWeekYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "subISOWeekYears", "_index", "_index2", "_index3", "dirtyDate", "dirtyAmount", "amount", "require_differenceInISOWeekYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInISOWeekYears", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "sign", "difference", "isLastISOWeekYearNotFull", "result", "require_differenceInMinutes", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInMinutes", "_index", "_index2", "_index3", "_index4", "dateLeft", "dateRight", "options", "diff", "require_isLastDayOfMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isLastDayOfMonth", "_index", "_index2", "_index3", "_index4", "dirtyDate", "date", "require_differenceInMonths", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInMonths", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "sign", "difference", "result", "isLastMonthNotFull", "require_differenceInQuarters", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInQuarters", "_index", "_index2", "_index3", "dateLeft", "dateRight", "options", "diff", "require_differenceInSeconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInSeconds", "_index", "_index2", "_index3", "dateLeft", "dateRight", "options", "diff", "require_differenceInWeeks", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInWeeks", "_index", "_index2", "_index3", "dateLeft", "dateRight", "options", "diff", "require_differenceInYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "differenceInYears", "_index", "_index2", "_index3", "_index4", "dirtyDateLeft", "dirtyDateRight", "dateLeft", "dateRight", "sign", "difference", "isLastYearNotFull", "result", "require_eachDayOfInterval", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachDayOfInterval", "_index", "_index2", "dirtyInterval", "options", "_options$step", "interval", "startDate", "endDate", "endTime", "dates", "currentDate", "step", "require_eachHourOfInterval", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachHourOfInterval", "_index", "_index2", "_index3", "dirtyInterval", "options", "_options$step", "interval", "startDate", "endDate", "startTime", "endTime", "dates", "currentDate", "step", "require_startOfMinute", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "startOfMinute", "_index", "_index2", "dirtyDate", "date", "require_eachMinuteOfInterval", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachMinuteOfInterval", "_index", "_index2", "_index3", "_index4", "interval", "options", "_options$step", "startDate", "endDate", "startTime", "endTime", "dates", "currentDate", "step", "require_eachQuarterOfInterval", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachQuarterOfInterval", "_index", "_index2", "_index3", "_index4", "dirtyInterval", "interval", "startDate", "endDate", "endTime", "startDateQuarter", "endDateQuarter", "quarters", "currentQuarter", "require_eachWeekOfInterval", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachWeekOfInterval", "_index", "_index2", "_index3", "_index4", "dirtyInterval", "options", "interval", "startDate", "endDate", "endTime", "startDateWeek", "endDateWeek", "weeks", "currentWeek", "require_eachWeekendOfInterval", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachWeekendOfInterval", "_index", "_index2", "_index3", "_index4", "interval", "dateInterval", "weekends", "index", "date", "require_eachWeekendOfMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachWeekendOfMonth", "_index", "_index2", "_index3", "_index4", "dirtyDate", "startDate", "endDate", "require_eachWeekendOfYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "eachWeekendOfYear", "_index", "_index2", "_index3", "_index4", "dirtyDate", "startDate", "endDate", "require_endOfDecade", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfDecade", "_index", "_index2", "dirtyDate", "date", "year", "decade", "require_endOfHour", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfHour", "_index", "_index2", "dirtyDate", "date", "require_endOfISOWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfISOWeek", "_index", "_index2", "dirtyDate", "require_endOfISOWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfISOWeekYear", "_index", "_index2", "_index3", "dirtyDate", "year", "fourthOfJanuaryOfNextYear", "date", "require_endOfMinute", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfMinute", "_index", "_index2", "dirtyDate", "date", "require_endOfQuarter", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfQuarter", "_index", "_index2", "dirtyDate", "date", "currentMonth", "month", "require_endOfSecond", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfSecond", "_index", "_index2", "dirtyDate", "date", "require_endOfToday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "endOfToday", "_index", "require_endOfTomorrow", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "endOfTomorrow", "now", "year", "month", "day", "date", "require_endOfYesterday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "endOfYesterday", "now", "year", "month", "day", "date", "require_cloneObject", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "cloneObject", "_index", "object", "require_formatDistance", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatDistance", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "_index9", "_index10", "MINUTES_IN_DAY", "MINUTES_IN_ALMOST_TWO_DAYS", "MINUTES_IN_MONTH", "MINUTES_IN_TWO_MONTHS", "dirtyDate", "dirtyBaseDate", "options", "_ref", "_options$locale", "defaultOptions", "locale", "comparison", "localizeOptions", "dateLeft", "dateRight", "seconds", "offsetInSeconds", "minutes", "months", "hours", "days", "nearestMonth", "monthsSinceStartOfYear", "years", "require_formatDistanceStrict", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatDistanceStrict", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "MILLISECONDS_IN_MINUTE", "MINUTES_IN_DAY", "MINUTES_IN_MONTH", "MINUTES_IN_YEAR", "dirtyDate", "dirtyBaseDate", "options", "_ref", "_options$locale", "_options$roundingMeth", "defaultOptions", "locale", "comparison", "localizeOptions", "dateLeft", "dateRight", "roundingMethod", "roundingMethodFn", "milliseconds", "minutes", "timezoneOffset", "dstNormalizedMinutes", "defaultUnit", "unit", "seconds", "roundedMinutes", "hours", "days", "months", "years", "require_formatDistanceToNow", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatDistanceToNow", "_index", "_index2", "dirtyDate", "options", "require_formatDistanceToNowStrict", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatDistanceToNowStrict", "_index", "_index2", "dirtyDate", "options", "require_formatDuration", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatDuration", "_index", "_index2", "defaultFormat", "duration", "options", "_ref", "_options$locale", "_options$format", "_options$zero", "_options$delimiter", "defaultOptions", "locale", "format", "zero", "delimiter", "result", "acc", "unit", "token", "m", "value", "require_formatISO", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatISO", "_index", "_index2", "_index3", "date", "options", "_options$format", "_options$representati", "originalDate", "format", "representation", "result", "tzOffset", "dateDelimiter", "timeDelimiter", "day", "month", "year", "offset", "absoluteOffset", "hourOffset", "minuteOffset", "sign", "hour", "minute", "second", "separator", "time", "require_formatISO9075", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatISO9075", "_index", "_index2", "_index3", "dirtyDate", "options", "_options$format", "_options$representati", "originalDate", "format", "representation", "result", "dateDelimiter", "timeDelimiter", "day", "month", "year", "hour", "minute", "second", "separator", "require_formatISODuration", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatISODuration", "_typeof2", "_index", "duration", "_duration$years", "years", "_duration$months", "months", "_duration$days", "days", "_duration$hours", "hours", "_duration$minutes", "minutes", "_duration$seconds", "seconds", "require_formatRFC3339", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatRFC3339", "_index", "_index2", "_index3", "_index4", "dirtyDate", "options", "_options$fractionDigi", "originalDate", "fractionDigits", "day", "month", "year", "hour", "minute", "second", "fractionalSecond", "milliseconds", "fractionalSeconds", "offset", "tzOffset", "absoluteOffset", "hourOffset", "minuteOffset", "sign", "require_formatRFC7231", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatRFC7231", "_index", "_index2", "_index3", "days", "months", "dirtyDate", "originalDate", "dayName", "dayOfMonth", "monthName", "year", "hour", "minute", "second", "require_formatRelative", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "formatRelative", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "_index9", "dirtyDate", "dirtyBaseDate", "options", "_ref", "_options$locale", "_ref2", "_ref3", "_ref4", "_options$weekStartsOn", "_options$locale2", "_options$locale2$opti", "_defaultOptions$local", "_defaultOptions$local2", "date", "baseDate", "defaultOptions", "locale", "weekStartsOn", "diff", "token", "utcDate", "utcBaseDate", "formatStr", "require_fromUnixTime", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "fromUnixTime", "_index", "_index2", "_index3", "dirtyUnixTime", "unixTime", "require_getDayOfYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getDayOfYear", "_index", "_index2", "_index3", "_index4", "dirtyDate", "date", "diff", "dayOfYear", "require_isLeapYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isLeapYear", "_index", "_index2", "dirtyDate", "date", "year", "require_getDaysInYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getDaysInYear", "_index", "_index2", "_index3", "dirtyDate", "date", "require_getDecade", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getDecade", "_index", "_index2", "dirtyDate", "date", "year", "decade", "require_getDefaultOptions", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getDefaultOptions", "_index", "_index2", "require_getISODay", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getISODay", "_index", "_index2", "dirtyDate", "date", "day", "require_getISOWeeksInYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getISOWeeksInYear", "_index", "_index2", "_index3", "MILLISECONDS_IN_WEEK", "dirtyDate", "thisYear", "nextYear", "diff", "require_getMilliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getMilliseconds", "_index", "_index2", "dirtyDate", "date", "milliseconds", "require_getOverlappingDaysInIntervals", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getOverlappingDaysInIntervals", "_index", "_index2", "MILLISECONDS_IN_DAY", "dirtyIntervalLeft", "dirtyIntervalRight", "intervalLeft", "intervalRight", "leftStartTime", "leftEndTime", "rightStartTime", "rightEndTime", "isOverlapping", "overlapStartDate", "overlapEndDate", "differenceInMs", "require_getUnixTime", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getUnixTime", "_index", "_index2", "dirtyDate", "require_getWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getWeekYear", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDate", "options", "_ref", "_ref2", "_ref3", "_options$firstWeekCon", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "date", "year", "defaultOptions", "firstWeekContainsDate", "firstWeekOfNextYear", "startOfNextYear", "firstWeekOfThisYear", "startOfThisYear", "require_startOfWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "startOfWeekYear", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDate", "options", "_ref", "_ref2", "_ref3", "_options$firstWeekCon", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "defaultOptions", "firstWeekContainsDate", "year", "firstWeek", "date", "require_getWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getWeek", "_index", "_index2", "_index3", "_index4", "MILLISECONDS_IN_WEEK", "dirtyDate", "options", "date", "diff", "require_getWeekOfMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getWeekOfMonth", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "date", "options", "_ref", "_ref2", "_ref3", "_options$weekStartsOn", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "defaultOptions", "weekStartsOn", "currentDayOfMonth", "startWeekDay", "lastDayOfFirstWeek", "remainingDaysAfterFirstWeek", "require_lastDayOfMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfMonth", "_index", "_index2", "dirtyDate", "date", "month", "require_getWeeksInMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "getWeeksInMonth", "_index", "_index2", "_index3", "_index4", "date", "options", "require_hoursToMilliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "hoursToMilliseconds", "_index", "_index2", "hours", "require_hoursToMinutes", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "hoursToMinutes", "_index", "_index2", "hours", "require_hoursToSeconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "hoursToSeconds", "_index", "_index2", "hours", "require_intervalToDuration", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "intervalToDuration", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "_index9", "_index10", "interval", "start", "end", "duration", "sign", "remainingMonths", "remainingDays", "remainingHours", "remainingMinutes", "remainingSeconds", "require_intlFormat", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "intlFormat", "_index", "date", "formatOrLocale", "localeOptions", "_localeOptions", "formatOptions", "isFormatOptions", "opts", "require_intlFormatDistance", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "intlFormatDistance", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "_index9", "_index10", "_index11", "date", "baseDate", "options", "value", "unit", "dateLeft", "dateRight", "diffInSeconds", "rtf", "require_isExists", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "isExists", "year", "month", "day", "date", "require_isFirstDayOfMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isFirstDayOfMonth", "_index", "_index2", "dirtyDate", "require_isFriday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isFriday", "_index", "_index2", "dirtyDate", "require_isFuture", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isFuture", "_index", "_index2", "dirtyDate", "require_isMatch", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isMatch", "_index", "_index2", "_index3", "dateString", "formatString", "options", "require_isMonday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isMonday", "_index", "_index2", "date", "require_isPast", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isPast", "_index", "_index2", "dirtyDate", "require_startOfHour", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "startOfHour", "_index", "_index2", "dirtyDate", "date", "require_isSameHour", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSameHour", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "dateLeftStartOfHour", "dateRightStartOfHour", "require_isSameWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSameWeek", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "options", "dateLeftStartOfWeek", "dateRightStartOfWeek", "require_isSameISOWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSameISOWeek", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "require_isSameISOWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSameISOWeekYear", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "dateLeftStartOfYear", "dateRightStartOfYear", "require_isSameMinute", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSameMinute", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "dateLeftStartOfMinute", "dateRightStartOfMinute", "require_startOfSecond", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "startOfSecond", "_index", "_index2", "dirtyDate", "date", "require_isSameSecond", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isSameSecond", "_index", "_index2", "dirtyDateLeft", "dirtyDateRight", "dateLeftStartOfSecond", "dateRightStartOfSecond", "require_isThisHour", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisHour", "_index", "_index2", "dirtyDate", "require_isThisISOWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisISOWeek", "_index", "_index2", "dirtyDate", "require_isThisMinute", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisMinute", "_index", "_index2", "dirtyDate", "require_isThisMonth", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisMonth", "_index", "_index2", "dirtyDate", "require_isThisQuarter", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisQuarter", "_index", "_index2", "dirtyDate", "require_isThisSecond", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisSecond", "_index", "_index2", "dirtyDate", "require_isThisWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisWeek", "_index", "_index2", "dirtyDate", "options", "require_isThisYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThisYear", "_index", "_index2", "dirtyDate", "require_isThursday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isThursday", "_index", "_index2", "dirtyDate", "require_isToday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isToday", "_index", "_index2", "dirtyDate", "require_isTomorrow", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isTomorrow", "_index", "_index2", "_index3", "dirtyDate", "require_isTuesday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isTuesday", "_index", "_index2", "dirtyDate", "require_isWednesday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isWednesday", "_index", "_index2", "dirtyDate", "require_isYesterday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "isYesterday", "_index", "_index2", "_index3", "dirtyDate", "require_lastDayOfDecade", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfDecade", "_index", "_index2", "dirtyDate", "date", "year", "decade", "require_lastDayOfWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfWeek", "_index", "_index2", "_index3", "_index4", "dirtyDate", "options", "_ref", "_ref2", "_ref3", "_options$weekStartsOn", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "defaultOptions", "weekStartsOn", "date", "day", "diff", "require_lastDayOfISOWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfISOWeek", "_index", "_index2", "dirtyDate", "require_lastDayOfISOWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfISOWeekYear", "_index", "_index2", "_index3", "dirtyDate", "year", "fourthOfJanuary", "date", "require_lastDayOfQuarter", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfQuarter", "_index", "_index2", "dirtyDate", "date", "currentMonth", "month", "require_lastDayOfYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lastDayOfYear", "_index", "_index2", "dirtyDate", "date", "year", "require_lightFormat", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "lightFormat", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "formattingTokensRegExp", "escapedStringRegExp", "doubleQuoteRegExp", "unescapedLatinCharacterRegExp", "dirtyDate", "formatStr", "originalDate", "timezoneOffset", "utcDate", "tokens", "result", "substring", "firstCharacter", "cleanEscapedString", "formatter", "input", "matches", "require_milliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "milliseconds", "_index", "daysInYear", "_ref", "years", "months", "weeks", "days", "hours", "minutes", "seconds", "totalDays", "totalSeconds", "require_millisecondsToHours", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "millisecondsToHours", "_index", "_index2", "milliseconds", "hours", "require_millisecondsToMinutes", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "millisecondsToMinutes", "_index", "_index2", "milliseconds", "minutes", "require_millisecondsToSeconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "millisecondsToSeconds", "_index", "_index2", "milliseconds", "seconds", "require_minutesToHours", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "minutesToHours", "_index", "_index2", "minutes", "hours", "require_minutesToMilliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "minutesToMilliseconds", "_index", "_index2", "minutes", "require_minutesToSeconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "minutesToSeconds", "_index", "_index2", "minutes", "require_monthsToQuarters", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "monthsToQuarters", "_index", "_index2", "months", "quarters", "require_monthsToYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "monthsToYears", "_index", "_index2", "months", "years", "require_nextDay", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextDay", "_index", "_index2", "_index3", "date", "day", "delta", "require_nextFriday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextFriday", "_index", "_index2", "date", "require_nextMonday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextMonday", "_index", "_index2", "date", "require_nextSaturday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextSaturday", "_index", "_index2", "date", "require_nextSunday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextSunday", "_index", "_index2", "date", "require_nextThursday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextThursday", "_index", "_index2", "date", "require_nextTuesday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextTuesday", "_index", "_index2", "date", "require_nextWednesday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "nextWednesday", "_index", "_index2", "date", "require_parseJSON", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "parseJSON", "_index", "_index2", "argument", "parts", "require_previousDay", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousDay", "_index", "_index2", "_index3", "date", "day", "delta", "require_previousFriday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousFriday", "_index", "_index2", "date", "require_previousMonday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousMonday", "_index", "_index2", "date", "require_previousSaturday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousSaturday", "_index", "_index2", "date", "require_previousSunday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousSunday", "_index", "_index2", "date", "require_previousThursday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousThursday", "_index", "_index2", "date", "require_previousTuesday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousTuesday", "_index", "_index2", "date", "require_previousWednesday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "previousWednesday", "_index", "_index2", "date", "require_quartersToMonths", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "quartersToMonths", "_index", "_index2", "quarters", "require_quartersToYears", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "quartersToYears", "_index", "_index2", "quarters", "years", "require_roundToNearestMinutes", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "roundToNearestMinutes", "_index", "_index2", "_index3", "dirtyDate", "options", "_options$nearestTo", "nearestTo", "date", "seconds", "minutes", "roundingMethod", "roundedMinutes", "remainderMinutes", "addedMinutes", "require_secondsToHours", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "secondsToHours", "_index", "_index2", "seconds", "hours", "require_secondsToMilliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "secondsToMilliseconds", "_index", "_index2", "seconds", "require_secondsToMinutes", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "secondsToMinutes", "_index", "_index2", "seconds", "minutes", "require_setDate", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setDate", "_index", "_index2", "_index3", "dirtyDate", "dirtyDayOfMonth", "date", "dayOfMonth", "require_setDay", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setDay", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDate", "dirtyDay", "options", "_ref", "_ref2", "_ref3", "_options$weekStartsOn", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "defaultOptions", "weekStartsOn", "date", "day", "currentDay", "remainder", "dayIndex", "delta", "diff", "require_setDayOfYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setDayOfYear", "_index", "_index2", "_index3", "dirtyDate", "dirtyDayOfYear", "date", "dayOfYear", "require_setDefaultOptions", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setDefaultOptions", "_index", "_index2", "newOptions", "result", "defaultOptions", "property", "_property", "require_setISODay", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setISODay", "_index", "_index2", "_index3", "_index4", "_index5", "dirtyDate", "dirtyDay", "date", "day", "currentDay", "diff", "require_setISOWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setISOWeek", "_index", "_index2", "_index3", "_index4", "dirtyDate", "dirtyISOWeek", "date", "isoWeek", "diff", "require_setMilliseconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setMilliseconds", "_index", "_index2", "_index3", "dirtyDate", "dirtyMilliseconds", "date", "milliseconds", "require_setWeek", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setWeek", "_index", "_index2", "_index3", "_index4", "dirtyDate", "dirtyWeek", "options", "date", "week", "diff", "require_setWeekYear", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "setWeekYear", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "dirtyDate", "dirtyWeekYear", "options", "_ref", "_ref2", "_ref3", "_options$firstWeekCon", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "defaultOptions", "firstWeekContainsDate", "date", "weekYear", "diff", "firstWeek", "require_startOfDecade", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "startOfDecade", "_index", "_index2", "dirtyDate", "date", "year", "decade", "require_startOfToday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "startOfToday", "_index", "require_startOfTomorrow", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "startOfTomorrow", "now", "year", "month", "day", "date", "require_startOfYesterday", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "startOfYesterday", "now", "year", "month", "day", "date", "require_sub", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "sub", "_typeof2", "_index", "_index2", "_index3", "_index4", "date", "duration", "years", "months", "weeks", "days", "hours", "minutes", "seconds", "dateWithoutMonths", "dateWithoutDays", "minutestoSub", "secondstoSub", "mstoSub", "finalDate", "require_subBusinessDays", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "subBusinessDays", "_index", "_index2", "_index3", "dirtyDate", "dirtyAmount", "amount", "require_subHours", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "subHours", "_index", "_index2", "_index3", "dirtyDate", "dirtyAmount", "amount", "require_subMinutes", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "subMinutes", "_index", "_index2", "_index3", "dirtyDate", "dirtyAmount", "amount", "require_subSeconds", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "subSeconds", "_index", "_index2", "_index3", "dirtyDate", "dirtyAmount", "amount", "require_weeksToDays", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "weeksToDays", "_index", "_index2", "weeks", "require_yearsToMonths", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "yearsToMonths", "_index", "_index2", "years", "require_yearsToQuarters", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "yearsToQuarters", "_index", "_index2", "years", "require_date_fns", "__commonJSMin", "exports", "init_define_process_env", "init_sentry_release_injection_stub", "_interopRequireDefault", "_exportNames", "_index", "_index2", "_index3", "_index4", "_index5", "_index6", "_index7", "_index8", "_index9", "_index10", "_index11", "_index12", "_index13", "_index14", "_index15", "_index16", "_index17", "_index18", "_index19", "_index20", "_index21", "_index22", "_index23", "_index24", "_index25", "_index26", "_index27", "_index28", "_index29", "_index30", "_index31", "_index32", "_index33", "_index34", "_index35", "_index36", "_index37", "_index38", "_index39", "_index40", "_index41", "_index42", "_index43", "_index44", "_index45", "_index46", "_index47", "_index48", "_index49", "_index50", "_index51", "_index52", "_index53", "_index54", "_index55", "_index56", "_index57", "_index58", "_index59", "_index60", "_index61", "_index62", "_index63", "_index64", "_index65", "_index66", "_index67", "_index68", "_index69", "_index70", "_index71", "_index72", "_index73", "_index74", "_index75", "_index76", "_index77", "_index78", "_index79", "_index80", "_index81", "_index82", "_index83", "_index84", "_index85", "_index86", "_index87", "_index88", "_index89", "_index90", "_index91", "_index92", "_index93", "_index94", "_index95", "_index96", "_index97", "_index98", "_index99", "_index100", "_index101", "_index102", "_index103", "_index104", "_index105", "_index106", "_index107", "_index108", "_index109", "_index110", "_index111", "_index112", "_index113", "_index114", "_index115", "_index116", "_index117", "_index118", "_index119", "_index120", "_index121", "_index122", "_index123", "_index124", "_index125", "_index126", "_index127", "_index128", "_index129", "_index130", "_index131", "_index132", "_index133", "_index134", "_index135", "_index136", "_index137", "_index138", "_index139", "_index140", "_index141", "_index142", "_index143", "_index144", "_index145", "_index146", "_index147", "_index148", "_index149", "_index150", "_index151", "_index152", "_index153", "_index154", "_index155", "_index156", "_index157", "_index158", "_index159", "_index160", "_index161", "_index162", "_index163", "_index164", "_index165", "_index166", "_index167", "_index168", "_index169", "_index170", "_index171", "_index172", "_index173", "_index174", "_index175", "_index176", "_index177", "_index178", "_index179", "_index180", "_index181", "_index182", "_index183", "_index184", "_index185", "_index186", "_index187", "_index188", "_index189", "_index190", "_index191", "_index192", "_index193", "_index194", "_index195", "_index196", "_index197", "_index198", "_index199", "_index200", "_index201", "_index202", "_index203", "_index204", "_index205", "_index206", "_index207", "_index208", "_index209", "_index210", "_index211", "_index212", "_index213", "_index214", "_index215", "_index216", "_index217", "_index218", "_index219", "_index220", "_index221", "_index222", "_index223", "_index224", "_index225", "_index226", "_index227", "_index228", "_index229", "_index230", "_index231", "_index232", "_index233", "_index234", "_index235", "_index236", "_index237", "_index238", "_index239", "_index240", "key", "require_tzIntlTimeZoneName", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "tzIntlTimeZoneName", "length", "date", "options", "dtf", "getDTF", "partsTimeZone", "hackyTimeZone", "formatted", "i", "tzNameMatch", "timeZone", "locale", "require_tzTokenizeDate", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "tzTokenizeDate", "date", "timeZone", "dtf", "getDateTimeFormat", "partsOffset", "hackyOffset", "typeToPos", "formatted", "filled", "i", "pos", "error", "parsed", "dtfCache", "testDateFormatted", "hourCycleSupported", "require_newDateUTC", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "newDateUTC", "fullYear", "month", "day", "hour", "minute", "second", "millisecond", "utcDate", "require_tzParseTimezone", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "tzParseTimezone", "_index", "_interopRequireDefault", "_index2", "obj", "MILLISECONDS_IN_HOUR", "MILLISECONDS_IN_MINUTE", "patterns", "timezoneString", "date", "isUtcDate", "token", "absoluteOffset", "hours", "validateTimezone", "minutes", "isValidTimezoneIANAString", "utcDate", "toUtcDate", "offset", "calcOffset", "fixedOffset", "fixOffset", "tokens", "asUTC", "asTS", "over", "localTS", "utcGuess", "o2", "o3", "validIANATimezoneCache", "timeZoneString", "error", "require_formatters", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "_index", "_interopRequireDefault", "_index2", "obj", "MILLISECONDS_IN_MINUTE", "formatters", "date", "token", "localize", "options", "timezoneOffset", "getTimeZoneOffset", "formatTimezoneWithOptionalMinutes", "formatTimezone", "formatTimezoneShort", "originalDate", "timeZone", "timeZoneOffset", "addLeadingZeros", "number", "targetLength", "sign", "output", "offset", "dirtyDelimeter", "delimeter", "absOffset", "hours", "minutes", "_default", "require_tzPattern", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "tzPattern", "_default", "require_toDate", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "toDate", "_index", "_interopRequireDefault", "_index2", "_index3", "_index4", "obj", "MILLISECONDS_IN_HOUR", "MILLISECONDS_IN_MINUTE", "DEFAULT_ADDITIONAL_DIGITS", "patterns", "argument", "dirtyOptions", "options", "additionalDigits", "dateStrings", "splitDateString", "parseYearResult", "parseYear", "year", "restDateString", "date", "parseDate", "timestamp", "time", "offset", "parseTime", "dateString", "parts", "timeString", "token", "patternYYY", "patternYYYYY", "yearString", "centuryString", "month", "week", "validateDate", "dayOfYear", "validateDayOfYearDate", "day", "validateWeekDate", "dayOfISOWeekYear", "dayOfWeek", "hours", "minutes", "validateTime", "seconds", "isoWeekYear", "fourthOfJanuaryDay", "diff", "DAYS_IN_MONTH", "DAYS_IN_MONTH_LEAP_YEAR", "isLeapYearIndex", "isLeapYear", "require_format", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "format", "_index", "_interopRequireDefault", "_index2", "_index3", "obj", "tzFormattingTokensRegExp", "dirtyDate", "dirtyFormatStr", "dirtyOptions", "formatStr", "options", "matches", "date", "result", "token", "pos", "precededByQuotedSection", "replaced", "require_utcToZonedTime", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "utcToZonedTime", "_index", "_interopRequireDefault", "_index2", "obj", "dirtyDate", "timeZone", "options", "date", "offsetMilliseconds", "d", "resultDate", "require_formatInTimeZone", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "formatInTimeZone", "_index", "_interopRequireDefault", "_index2", "_index3", "obj", "date", "timeZone", "formatStr", "options", "extendedOptions", "require_getTimezoneOffset", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "getTimezoneOffset", "_index", "_interopRequireDefault", "obj", "timeZone", "date", "require_zonedTimeToUtc", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "zonedTimeToUtc", "_index", "_interopRequireDefault", "_index2", "_index3", "_index4", "_index5", "obj", "date", "timeZone", "options", "extendedOptions", "d", "utc", "offsetMilliseconds", "require_date_fns_tz", "__commonJSMin", "exports", "module", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "import_react", "init_define_process_env", "init_sentry_release_injection_stub", "import_meta", "keyCount", "atom", "read", "write", "key", "config", "defaultRead", "defaultWrite", "get", "set", "arg", "isSelfAtom", "a", "hasInitialValue", "isActuallyWritableAtom", "CONTINUE_PROMISE", "PENDING", "FULFILLED", "REJECTED", "isContinuablePromise", "promise", "continuablePromiseMap", "createContinuablePromise", "abort", "complete", "continuePromise", "p", "resolve", "reject", "curr", "onFulfilled", "me", "v", "onRejected", "e", "nextPromise", "nextAbort", "isPromiseLike", "x", "isAtomStateInitialized", "atomState", "returnAtomValue", "getPendingContinuablePromise", "value", "addPendingContinuablePromiseToDependency", "dependencyAtomState", "addDependency", "pending", "aState", "_a", "continuablePromise", "addPendingDependent", "createPending", "addPendingAtom", "dependent", "dependents", "getPendingDependents", "addPendingFunction", "fn", "flushPending", "atomStates", "functions", "l", "buildStore", "getAtomState", "debugMountedAtoms", "setAtomStateValueOrPromise", "valueOrPromise", "abortPromise", "completePromise", "hasPrevValue", "prevValue", "pendingPromise", "readAtomState", "force", "n", "isSync", "getter", "aState2", "pending2", "mountDependencies", "controller", "setSelf", "options", "args", "writeAtom", "error", "readAtom", "getDependents", "_b", "atomWithPendingContinuablePromise", "recomputeDependents", "topsortedAtoms", "markedAtoms", "visit", "d", "s", "changedAtoms", "isMarked", "i", "prevEpochNumber", "hasChangedDeps", "dep", "writeAtomState", "setter", "args2", "r", "result", "mountAtom", "aMounted", "unmountAtom", "mounted", "onMount", "onUnmount", "store", "listener", "listeners", "values", "createStore", "atomStateMap", "defaultStore", "getDefaultStore", "import_meta", "StoreContext", "useStore", "options", "store", "getDefaultStore", "isPromiseLike", "x", "use", "ReactExports", "promise", "v", "e", "useAtomValue", "atom", "options", "store", "useStore", "valueFromReducer", "storeFromReducer", "atomFromReducer", "rerender", "prev", "nextValue", "value", "delay", "unsub", "useSetAtom", "args", "import_meta", "useAtom", "init_define_process_env", "init_sentry_release_injection_stub", "React", "INITIALIZED", "USER_CONFIG_ATOM", "atom", "DEFAULT_LOCALE", "DEFAULT_CURRENCY", "initUserConfig", "_a", "_b", "userLocale", "getUserLocale", "userCurrency", "getUserCurrency", "getDefaultStore", "getUserConfig", "store", "useUserEnv", "config", "useAtomValue", "ufeUserLocale", "lens", "cookieUserLocale", "getCookie", "USER_LANG_COOKIE_NAME", "LANGS", "subdomain", "I18N_SUBDOMAINS", "locale", "ufeUserCurrency", "USER_CURRENCY_COOKIE_NAME", "number_exports", "__export", "format", "formatCompact", "getGroupSeparator", "init_define_process_env", "init_sentry_release_injection_stub", "CACHE", "getGroupSeparator", "locale", "numberFormat", "numberFormatToParts", "groupSeparatorPart", "part", "result", "format", "amount", "options", "intlNumberFormat", "precision", "__spreadValues", "formatCompact", "value", "searchParams_exports", "__export", "addSearchParamsToUrl", "init_define_process_env", "init_sentry_release_injection_stub", "buildSearchParams", "params", "k", "baseUrl", "character", "text_exports", "__export", "capitalize", "numberToLocaleString", "sanitizeDescriptionStyle", "slugify", "stripTags", "truncate", "init_define_process_env", "init_sentry_release_injection_stub", "capitalize", "str", "stripTags", "truncate", "text", "limit", "numberToLocaleString", "value", "defaultValue", "getUserConfig", "slugify", "separator", "CSS_PROPERTY_WHITELIST", "sanitizeDescriptionStyle", "description", "_", "style", "rule", "property", "init_define_process_env", "init_sentry_release_injection_stub", "array_exports", "__export", "partition", "shuffle", "init_define_process_env", "init_sentry_release_injection_stub", "array", "index", "randomIndex", "predicate", "accumulator", "item", "money_exports", "__export", "convert", "init_define_process_env", "init_sentry_release_injection_stub", "convert", "amount", "sourceCurrency", "targetCurrency", "rates", "precision", "warn", "convertedAmount", "payment_exports", "__export", "getMethodName", "getPaymentMethods", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "LANGS", "LOCALES", "EXTENDED_LOCALES", "AccountType", "AddressType", "OrderStatus", "PaymentMethod", "FIELDSETS_KEYS", "getMethodName", "paymentMethod", "getPaymentMethods", "projectIsDonationBased", "platform_exports", "__export", "getLabel", "init_define_process_env", "init_sentry_release_injection_stub", "getLabel", "platform", "scroll_exports", "__export", "animatedScrollTo", "scrollToHashWithOffset", "init_define_process_env", "init_sentry_release_injection_stub", "lerp", "start", "end", "amt", "target", "duration", "startTime", "step", "timestamp", "time", "hash", "offset", "element", "shipping_exports", "__export", "getShippingOptionLabel", "mapCountryToShipping", "init_define_process_env", "init_sentry_release_injection_stub", "mapCountryToShipping", "shippings", "accumulator", "shipping", "_a", "countries", "countryAccumulator", "country", "__spreadProps", "__spreadValues", "getShippingOptionLabel", "label", "currencySymbol", "styles_exports", "__export", "rem", "init_define_process_env", "init_sentry_release_injection_stub", "DEFAULT_PIXEL_SIZE", "size", "pixels", "ua_exports", "__export", "isWebview", "init_define_process_env", "init_sentry_release_injection_stub", "rules", "webviewRegExp", "ua", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "encodedTlds", "encodedUtlds", "assign", "target", "properties", "key", "numeric", "ascii", "alpha", "asciinumeric", "alphanumeric", "domain", "emoji", "scheme", "slashscheme", "whitespace", "registerGroup", "name", "groups", "addToGroups", "t", "flags", "k", "group", "flagsForToken", "result", "c", "State", "token", "input", "state", "nextState", "i", "regex", "exactOnly", "inputs", "next", "regexp", "len", "templateState", "allFlags", "ta", "tr", "ts", "tt", "WORD", "UWORD", "LOCALHOST", "TLD", "UTLD", "SCHEME", "SLASH_SCHEME", "NUM", "WS", "NL$1", "OPENBRACE", "CLOSEBRACE", "OPENBRACKET", "CLOSEBRACKET", "OPENPAREN", "CLOSEPAREN", "OPENANGLEBRACKET", "CLOSEANGLEBRACKET", "FULLWIDTHLEFTPAREN", "FULLWIDTHRIGHTPAREN", "LEFTCORNERBRACKET", "RIGHTCORNERBRACKET", "LEFTWHITECORNERBRACKET", "RIGHTWHITECORNERBRACKET", "FULLWIDTHLESSTHAN", "FULLWIDTHGREATERTHAN", "AMPERSAND", "APOSTROPHE", "ASTERISK", "AT", "BACKSLASH", "BACKTICK", "CARET", "COLON", "COMMA", "DOLLAR", "DOT", "EQUALS", "EXCLAMATION", "HYPHEN", "PERCENT", "PIPE", "PLUS", "POUND", "QUERY", "QUOTE", "SEMI", "SLASH", "TILDE", "UNDERSCORE", "EMOJI$1", "SYM", "tk", "ASCII_LETTER", "LETTER", "EMOJI", "DIGIT", "SPACE", "NL", "EMOJI_VARIATION", "EMOJI_JOINER", "tlds", "utlds", "init$2", "customSchemes", "groups", "State", "Start", "decodeTlds", "encodedTlds", "encodedUtlds", "tt", "APOSTROPHE", "OPENBRACE", "CLOSEBRACE", "OPENBRACKET", "CLOSEBRACKET", "OPENPAREN", "CLOSEPAREN", "OPENANGLEBRACKET", "CLOSEANGLEBRACKET", "FULLWIDTHLEFTPAREN", "FULLWIDTHRIGHTPAREN", "LEFTCORNERBRACKET", "RIGHTCORNERBRACKET", "LEFTWHITECORNERBRACKET", "RIGHTWHITECORNERBRACKET", "FULLWIDTHLESSTHAN", "FULLWIDTHGREATERTHAN", "AMPERSAND", "ASTERISK", "AT", "BACKTICK", "CARET", "COLON", "COMMA", "DOLLAR", "DOT", "EQUALS", "EXCLAMATION", "HYPHEN", "PERCENT", "PIPE", "PLUS", "POUND", "QUERY", "QUOTE", "SLASH", "SEMI", "TILDE", "UNDERSCORE", "BACKSLASH", "Num", "tr", "DIGIT", "NUM", "numeric", "Word", "ASCII_LETTER", "WORD", "ascii", "UWord", "LETTER", "UWORD", "alpha", "Ws", "SPACE", "WS", "whitespace", "NL$1", "Emoji", "EMOJI", "EMOJI$1", "emoji", "EmojiJoiner", "wordjr", "uwordjr", "i", "fastts", "TLD", "UTLD", "addToGroups", "SCHEME", "SLASH_SCHEME", "a", "b", "sch", "flags", "scheme", "slashscheme", "domain", "asciinumeric", "ts", "LOCALHOST", "SYM", "assign", "tk", "run$1", "start", "str", "iterable", "stringToArray", "c", "charCount", "tokens", "cursor", "charCursor", "state", "nextState", "tokenLength", "latestAccepting", "sinceAccepts", "charsSinceAccepts", "result", "len", "index", "first", "second", "char", "input", "t", "defaultt", "jr", "next", "encoded", "words", "stack", "digits", "popDigitCount", "popCount", "defaults", "noop", "Options", "opts", "defaultRender", "o", "ignoredTags", "uppercaseIgnoredTags", "ir", "token", "key", "operator", "isCallable", "option", "obj", "val", "MultiToken", "value", "tokens", "scheme", "options", "val", "truncate", "formatted", "protocol", "defaults", "token", "href", "formattedHref", "tagName", "content", "attributes", "className", "target", "rel", "attrs", "eventListeners", "assign", "createTokenClass", "type", "props", "Token", "p", "Email", "Text", "Nl", "Url", "LOCALHOST", "COLON", "makeState", "arg", "State", "init$1", "_ref", "groups", "qsAccepting", "AMPERSAND", "ASTERISK", "AT", "BACKSLASH", "BACKTICK", "CARET", "DOLLAR", "EQUALS", "HYPHEN", "NUM", "PERCENT", "PIPE", "PLUS", "POUND", "SLASH", "SYM", "TILDE", "UNDERSCORE", "qsNonAccepting", "APOSTROPHE", "COLON", "COMMA", "DOT", "EXCLAMATION", "QUERY", "QUOTE", "SEMI", "OPENANGLEBRACKET", "CLOSEANGLEBRACKET", "OPENBRACE", "CLOSEBRACE", "CLOSEBRACKET", "OPENBRACKET", "OPENPAREN", "CLOSEPAREN", "FULLWIDTHLEFTPAREN", "FULLWIDTHRIGHTPAREN", "LEFTCORNERBRACKET", "RIGHTCORNERBRACKET", "LEFTWHITECORNERBRACKET", "RIGHTWHITECORNERBRACKET", "FULLWIDTHLESSTHAN", "FULLWIDTHGREATERTHAN", "localpartAccepting", "Start", "Localpart", "tt", "ta", "Domain", "Scheme", "SlashScheme", "LocalpartAt", "LocalpartDot", "EmailDomain", "EmailDomainDot", "Email$1", "Email", "LOCALHOST", "EmailDomainHyphen", "EmailColon", "DomainHyphen", "DomainDot", "DomainDotTld", "Url", "DomainDotTldColon", "DomainDotTldColonPort", "Url$1", "UrlNonaccept", "SchemeColon", "SlashSchemeColon", "SlashSchemeColonSlash", "UriPrefix", "bracketPairs", "i", "OPEN", "CLOSE", "UrlOpen", "UrlOpenQ", "UrlOpenSyms", "NL$1", "Nl", "tk", "run", "start", "input", "tokens", "len", "cursor", "multis", "textTokens", "state", "secondState", "nextState", "multiLength", "latestAccepting", "sinceAccepts", "initMultiToken", "Text", "Multi", "subtokens", "startIdx", "endIdx", "value", "INIT", "init", "INIT", "init$2", "i", "init$1", "tokenize", "str", "run", "run$1", "HTML5NamedCharRefs", "HEXCHARCODE", "CHARCODE", "NAMED", "EntityParser", "named", "entity", "matches", "WSP", "ALPHA", "CRLF", "isSpace", "char", "isAlpha", "preprocessInput", "input", "EventedTokenizer", "delegate", "entityParser", "mode", "tag", "maybeDoctype", "nextSixChars", "isPublic", "isSystem", "state", "handler", "endIndex", "chars", "count", "Tokenizer", "options", "token", "i", "doctype", "isQuoted", "message", "tokenize", "tokenizer", "LinkifyResult", "StartTag", "EndTag", "Chars", "Comment", "Doctype", "linkifyHtml", "str", "opts", "tokens", "linkifiedTokens", "linkified", "Options", "defaultRender", "tagName", "preskipLen", "skipTagTokens", "linkifedChars", "linkifyChars", "link", "attributeArrayToStrings", "escapeText", "result", "skippedTokens", "stackCount", "attributes", "content", "attributesToString", "text", "escapeAttr", "attr", "val", "attrs", "attrStrs", "name", "value", "linkify", "content", "linkifyHtml", "value", "init_define_process_env", "init_sentry_release_injection_stub", "date_fns_exports", "init_define_process_env", "init_sentry_release_injection_stub", "__reExport", "dateFnsTz", "init_define_process_env", "init_sentry_release_injection_stub", "import_en_US", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "form", "formatDistance_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "buildFormatLongFn", "args", "options", "width", "format", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatLong_default", "init_define_process_env", "init_sentry_release_injection_stub", "formatRelativeLocale", "formatRelative", "token", "_date", "_baseDate", "_options", "formatRelative_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "buildLocalizeFn", "args", "dirtyIndex", "options", "context", "valuesArray", "defaultWidth", "width", "_defaultWidth", "_width", "index", "eraValues", "quarterValues", "monthValues", "dayValues", "dayPeriodValues", "ordinalNumber", "dirtyNumber", "options", "number", "unit", "feminineUnits", "suffix", "localize", "buildLocalizeFn", "quarter", "localize_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "buildMatchFn", "args", "string", "options", "width", "matchPattern", "matchResult", "matchedString", "parsePatterns", "key", "findIndex", "pattern", "findKey", "value", "rest", "object", "predicate", "array", "init_define_process_env", "init_sentry_release_injection_stub", "buildMatchPatternFn", "args", "string", "options", "matchResult", "matchedString", "parseResult", "value", "rest", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "match_default", "locale", "formatDistance_default", "formatLong_default", "formatRelative_default", "localize_default", "match_default", "fr_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "tokenValue", "formatDistance_default", "init_define_process_env", "init_sentry_release_injection_stub", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatLong_default", "init_define_process_env", "init_sentry_release_injection_stub", "formatRelativeLocale", "formatRelativeLocalePlural", "formatRelative", "token", "date", "_baseDate", "_options", "formatRelative_default", "init_define_process_env", "init_sentry_release_injection_stub", "eraValues", "quarterValues", "monthValues", "dayValues", "dayPeriodValues", "formattingDayPeriodValues", "ordinalNumber", "dirtyNumber", "_options", "number", "localize", "buildLocalizeFn", "quarter", "localize_default", "init_define_process_env", "init_sentry_release_injection_stub", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "match_default", "locale", "formatDistance_default", "formatLong_default", "formatRelative_default", "localize_default", "match_default", "es_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "formatRelativeLocale", "formatRelative", "token", "_date", "_baseDate", "_options", "formatRelative_default", "init_define_process_env", "init_sentry_release_injection_stub", "eraValues", "quarterValues", "monthValues", "dayValues", "dayPeriodValues", "formattingDayPeriodValues", "ordinalNumber", "dirtyNumber", "_options", "number", "rem100", "localize", "buildLocalizeFn", "quarter", "localize_default", "init_define_process_env", "init_sentry_release_injection_stub", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "match_default", "init_define_process_env", "init_sentry_release_injection_stub", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "tokenValue", "formatDistance_default", "init_define_process_env", "init_sentry_release_injection_stub", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatLong_default", "locale", "formatDistance_default", "formatLong_default", "formatRelative_default", "localize_default", "match_default", "en_CA_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "tokenValue", "formatDistance_default", "init_define_process_env", "init_sentry_release_injection_stub", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatLong_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "requiredArgs", "required", "args", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "_typeof", "o", "toDate", "argument", "requiredArgs", "argStr", "_typeof", "init_define_process_env", "init_sentry_release_injection_stub", "toInteger", "dirtyNumber", "number", "init_define_process_env", "init_sentry_release_injection_stub", "defaultOptions", "getDefaultOptions", "startOfUTCWeek", "dirtyDate", "options", "_ref", "_ref2", "_ref3", "_options$weekStartsOn", "_options$locale", "_options$locale$optio", "_defaultOptions$local", "_defaultOptions$local2", "requiredArgs", "defaultOptions", "getDefaultOptions", "weekStartsOn", "toInteger", "date", "toDate", "day", "diff", "isSameUTCWeek", "dirtyDateLeft", "dirtyDateRight", "options", "requiredArgs", "dateLeftStartOfWeek", "startOfUTCWeek", "dateRightStartOfWeek", "weekdays", "_lastWeek", "day", "thisWeek", "_nextWeek", "formatRelativeLocale", "date", "baseDate", "options", "isSameUTCWeek", "formatRelative", "token", "format", "formatRelative_default", "init_define_process_env", "init_sentry_release_injection_stub", "eraValues", "quarterValues", "monthValues", "dayValues", "dayPeriodValues", "formattingDayPeriodValues", "ordinalNumber", "dirtyNumber", "_options", "number", "localize", "buildLocalizeFn", "quarter", "localize_default", "init_define_process_env", "init_sentry_release_injection_stub", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "match_default", "locale", "formatDistance_default", "formatLong_default", "formatRelative_default", "localize_default", "match_default", "it_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "tokenValue", "formatDistance_default", "init_define_process_env", "init_sentry_release_injection_stub", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatLong_default", "init_define_process_env", "init_sentry_release_injection_stub", "formatRelativeLocale", "formatRelative", "token", "_date", "_baseDate", "_options", "formatRelative_default", "init_define_process_env", "init_sentry_release_injection_stub", "eraValues", "quarterValues", "monthValues", "formattingMonthValues", "dayValues", "dayPeriodValues", "formattingDayPeriodValues", "ordinalNumber", "dirtyNumber", "number", "localize", "buildLocalizeFn", "quarter", "localize_default", "init_define_process_env", "init_sentry_release_injection_stub", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "match_default", "locale", "formatDistance_default", "formatLong_default", "formatRelative_default", "localize_default", "match_default", "de_default", "init_define_process_env", "init_sentry_release_injection_stub", "init_define_process_env", "init_sentry_release_injection_stub", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "tokenValue", "formatDistance_default", "init_define_process_env", "init_sentry_release_injection_stub", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatLong_default", "init_define_process_env", "init_sentry_release_injection_stub", "formatRelativeLocale", "formatRelative", "token", "_date", "_baseDate", "_options", "formatRelative_default", "init_define_process_env", "init_sentry_release_injection_stub", "eraValues", "quarterValues", "monthValues", "dayValues", "dayPeriodValues", "ordinalNumber", "dirtyNumber", "_options", "number", "localize", "buildLocalizeFn", "quarter", "localize_default", "init_define_process_env", "init_sentry_release_injection_stub", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "match_default", "locale", "formatDistance_default", "formatLong_default", "formatRelative_default", "localize_default", "match_default", "nl_default", "locales", "en", "fr_default", "es_default", "en_CA_default", "it_default", "de_default", "nl_default", "defaultLocaleName", "init_define_process_env", "init_sentry_release_injection_stub", "HOUR", "getCountDown", "endDate", "short", "differenceInSecondsBetweenEndDateAndNow", "differenceInHoursBetweenEndDateAndNow", "timeInSecond", "formatSecondsToCountdown", "differenceInDaysBetweenEndDateAndNow", "secondsAmount", "normalizeTime", "time", "milliseconds", "futureDate", "timezoneDiff", "dateWithoutTimezoneDiff", "hours", "minutes", "seconds", "hoursOutput", "secondsOutput", "DEFAULT_MONTH_LIST", "daysFromNow", "daysToAdd", "date", "format", "formatStr", "options", "dateFormat", "__spreadProps", "__spreadValues", "locales", "getLocaleName", "formatDistanceToNow", "dateFormatDistanceToNow", "intlFormatDistance", "baseDate", "dateIntlFormatDistance", "minutesFromNow", "minutesToAdd", "locale", "configLocale", "getUserConfig", "isLocaleName", "defaultLocaleName", "getMonthsList", "formatLocale", "_", "index", "_a", "_b", "_c", "_d", "intlDateTimeFormat", "error", "createDateWithTimezone", "timezone", "getTimezoneCountry", "formatTime", "zonedTimeToUtc", "utcToZonedTime", "getRelativeFormattedDateFromOffset", "relativeDate", "offset", "getDateFormatPattern", "dateTimeFormatToParts", "getPatternForPart", "USER_COUNTRY", "part"] }